Re: Attribute value normalization

Lars Marius Garshol (larsga@ifi.uio.no)
27 May 1998 09:47:56 +0200


* MURATA Makoto
|
| xp says that the type of the attribute "a" is CDATA.

This is correct behaviour for a non-validating parser.
<URL:http://www.w3.org/TR/1998/REC-xml-19980210.xml#id(AVNormalize).child(3,p)>

| Aelfred says that the attribute value is always "test test".

This is correct behaviour for a validating parser. (xmlproc does the
same.)

<URL:http://www.w3.org/TR/1998/REC-xml-19980210.xml#id(AVNormalize).child(2,p)>

| Lark and expat normalize some but not all.

Hmmm. What do they do?

| Which one is correct?

AElfred and XP are behaving correctly. (Provided XP normalizes the
attribute value correctly, that is.)

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