Hi,

  In the attached file the attribute a1 is declared twice in the internal
subset. The draft (XML 1.0) says that this is ok, however it is binding that
the type of the attribute value should be taken as the first one which
occurs in the definition, in this case CDATA occurs before Nmtokens
therefore the type of a1 should be CDATA. However, this is not the case,
while parsing the type associated with a1 is NMTOKENS and normalization is
performed on the attribute value according to the rules specified in the XML
draft. However, ideally in this case there should be no normalization and a1
should be treated as CDATA. 

Is this is a bug?

 

Thanks !!

Regards

Ashwin

 

 

 

 

<!DOCTYPE doc [
<!ATTLIST doc a1 CDATA #IMPLIED>
<!ATTLIST doc a1 NMTOKENS #IMPLIED>
<!ELEMENT doc (#PCDATA)>
]>
<doc a1="1  2"></doc>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to