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 bu...@apache.org on 2001/06/26 00:37:37 UTC
[Bug 2318] New: - id attribute not recognized as name
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2318
*** shadow/2318 Mon Jun 25 15:37:37 2001
--- shadow/2318.tmp.4191 Mon Jun 25 15:37:37 2001
***************
*** 0 ****
--- 1,53 ----
+ +============================================================================+
+ | id attribute not recognized as name |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2318 Product: Xerces-J |
+ | Status: NEW Version: 1.4.1 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: Windows NT/2K |
+ | Priority: Other Component: DTD |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: galnares@us.ibm.com |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ xerces-j 1.4.1 outputs the following (incorrect) error when validating a schema
+ instance against the DTD for schemas:
+
+ [Error] idNotUnique.xsd:19:56: Attribute value "bad01" of type ID must be a
+ name.
+
+ The value "bad01" is a valid 'name'.
+
+ xerces-j 1.4.0 outputs (correctly) the following:
+
+ [Error] idNotUnique.xsd:19:56: Attribute value "bad01" of type ID must be
+ unique within the document.
+
+ schema 'idNotUnique':
+
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE schema SYSTEM "XMLSchema.dtd">
+ <schema xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <annotation>
+ <documentation>
+ ids with duplicate values.
+ </documentation>
+ </annotation>
+
+ <complexType name="ComplexTypeA">
+ <sequence>
+ <element id="bad01" name="ElementA1" type="integer"/>
+ </sequence>
+ </complexType>
+
+ <complexType name="ComplexTypeB">
+ <sequence>
+ <element id="bad01" name="ElementB1" type="string"/>
+ </sequence>
+ </complexType>
+
+ </schema>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org