Re: Attribute value normalization

Lars Marius Garshol (larsga@ifi.uio.no)
27 May 1998 15:28:18 +0200


* 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/