You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by sa...@ca.ibm.com on 2001/07/24 15:10:48 UTC
Re: [Bug 2761] New: - Incorrect NMTOKENS attribute value normalization in
Xerces v1.4.2
Hi. By looking at "http://www.w3.org/TR/2000/REC-xml-20001006#AVNormalize",
I believe the behavior of 1.4.2 is what's intended. For NMTOKEN, the parser
is required to replace #xD, #xA, and #X9 with #x20, then remove leading and
trailing #x20s, and replace sequences of #x20s by single #x20s.
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
sandygao@ca.ibm.com
bugzilla@apach
e.org To: xerces-j-dev@xml.apache.org, maillist@nue.et-inf.uni-siegen.de
cc:
07/24/2001 Subject: [Bug 2761] New: - Incorrect NMTOKENS attribute value
04:22 AM normalization in Xerces v1.4.2
Please respond
to
xerces-j-dev
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2761
*** shadow/2761 Tue Jul 24 01:22:23 2001
--- shadow/2761.tmp.15785 Tue Jul 24 01:22:23 2001
***************
*** 0 ****
--- 1,33 ----
+
+============================================================================+
+ | Incorrect NMTOKENS attribute value normalization in Xerces v1.4.2
|
+
+----------------------------------------------------------------------------+
+ | Bug #: 2761 Product: Xerces-J
|
+ | Status: NEW Version: CVS extract
|
+ | Resolution: Platform: All
|
+ | Severity: Major OS/Version: All
|
+ | Priority: Other Component: Core
|
+
+----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org
|
+ | Reported By: maillist@nue.et-inf.uni-siegen.de
|
+ | CC list: Cc:
|
+
+----------------------------------------------------------------------------+
+ | URL:
|
+
+============================================================================+
+ | DESCRIPTION
|
+ The attribute value (NMTOKENS) is incorrectly handed to the application
because
+ it is incorrectly normalized... (Only   can be stripped away)...
+
+ <!DOCTYPE doc [
+ <!ATTLIST normNames attr NMTOKENS #IMPLIED>
+ ]>
+ <doc>
+ <normNames attr=' A   
	 B '/>
+ </doc>
+
+ Output of the sample program is:
+
+ <!-- in Version Xerces 1.4.1 -->
+ attr="A 
	 B"
+
+ <!-- in Version Xerces 1.4.2 -->
+ attr="A B"
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org