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: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ +----------------------------------------------------------------------------+
+ |          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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to