[xml] Improper Type Returned For Repeated Attribute Declaration



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

 

 

 

 

Attachment: 095.xml
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]