You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/04/05 19:57:56 UTC
[Bug 1236] New - incorrect NMTOKENS attribute normalization
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1236
*** shadow/1236 Thu Apr 5 10:57:56 2001
--- shadow/1236.tmp.11194 Thu Apr 5 10:57:56 2001
***************
*** 0 ****
--- 1,57 ----
+ +============================================================================+
+ | incorrect NMTOKENS attribute normalization |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1236 Product: Xerces-C |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: PC |
+ | Severity: Critical OS/Version: |
+ | Priority: Component: Non-Validating Parser |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: mclee@oblix.com |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Xerces 1.4 generates incorrect output for
+ Normalization of Attribute that are NMTOKENS.
+ The attribute value stripped out too much character
+ reference. (re: XML Specification 1.0 section 3.3.3
+ Attribute-value normalization)
+
+ I compiled DOMPrint example with
+ Xerces 1.4 using MSDev 6.0 on Windows NT:
+
+ using the following test case attr.xml:
+ <!DOCTYPE normNames [
+ <!ELEMENT normNames EMPTY>
+ <!ATTLIST normNames attr NMTOKENS #IMPLIED>
+ ]>
+ <normNames attr="A


B"/>
+
+ I got the following output:
+ <!DOCTYPE normNames [
+ <!ELEMENT normNames EMPTY>
+ <!ATTLIST normNames attr NMTOKENS #IMPLIED>
+ ]>
+ <normNames attr="A B"/>
+
+ But the expected output according to the XML Specification
+ is
+ <!DOCTYPE normNames [
+ <!ELEMENT normNames EMPTY>
+ <!ATTLIST normNames attr NMTOKENS #IMPLIED>
+ ]>
+ <normNames attr="A #A #A #A B"/>
+
+ In fact, Xerces 1.4 does not seem to generate the
+ correct output for the last two examples in section
+ 3.3.3 of XML Specification 1.0. The last two
+ examples are:
+
+ * a="&d;&d;A&a;&a;B&da;"
+ * a="

A

B
"
+
+ thanks!
+
+ --Michele
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org