Attribute value normalization

Lars Marius Garshol larsga at ifi.uio.no
Wed May 27 15:30:05 BST 1998


* Murata Makoto
|
| Good to hear that.  What happens if the keyword NMTOKENS is replaced
| with CDATA?

* Richard Tobin
| 
| RXP and LT-XML produce (in canonical XML - I should have thought of
| that last time):
| 
| [canonical XML snipped]

xmlproc and XP produce the exact same output.
 
| Expat agrees.

Case seems closed, then, with five XML parsers in agreement, although
I'm still not sure the treatment of the second a attribute is
correct. The phrase

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

in the spec seems to imply that the second element with the attribute
should be 

<test a="  test  test  ">

in canonical form rather than the

<test a="    test    test    ">

produced by the parsers.


Is this a (highly understandable) bug or is it correct?

-- 
"These are, as I began, cumbersome ways / to kill a man. Simpler, direct, 
and much more neat / is to see that he is living somewhere in the middle /
of the twentieth century, and leave him there."     -- Edwin Brock

 http://www.stud.ifi.uio.no/~larsga/      http://birk105.studby.uio.no/


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




More information about the Xml-dev mailing list