Attribute value normalization

Richard Tobin richard at
Wed May 27 16:21:13 BST 1998

>     "only a single #x20 is appended for a "#xD#xA" sequence that is
>     part of [...] the literal entity value of an internal parsed
>     entity"

The implementations are correct.

The key here is the word "literal".  None of the internal entities
contains that sequence (ie carriage-return followed by linefeed)
*literally* - ie in the very text between the quotes in the entity
definition.  (There should be a link from the text in section 3.3.3 to
the definition of literal entity value in 4.5.)  The DA entity contains
that sequence in its replacement text, but not in its literal value.

A "natural" (to me, anyway) implementation will not have to do
anything at all to comply with the phrase quoted above, because it
will already have reduced literal #xD#xA sequences to #xA before

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list