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/11 16:54:57 UTC

[Bug 2115] New: - cos-element-consistent constraint not always applied

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2115

*** shadow/2115	Mon Jun 11 07:54:56 2001
--- shadow/2115.tmp.26210	Mon Jun 11 07:54:57 2001
***************
*** 0 ****
--- 1,54 ----
+ +============================================================================+
+ | cos-element-consistent constraint not always applied                       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2115                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: Schema-Structures       |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: mhuffman@ca.ibm.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The following constraint:
+ 
+ http://www.w3.org/TR/xmlschema-1/#cos-element-consistent
+ 
+ states that any 2 <element>s with the same namespace and name appearing within 
+ a <complexType> must have the same top-level type definition. Here is an 
+ example which violates this constraint and no errors are reported by the parser:
+ 
+ 3_7si21.xsd
+ ===========
+ <?xml version="1.0"?>
+ <schema xmlns          ="http://www.w3.org/2001/XMLSchema"
+         xmlns:si       ="http://www.Test.org/3_7si21"
+         targetNamespace="http://www.Test.org/3_7si21">
+ 
+ <element name="root" type="string"/>
+ 
+ <group name="myGroup1">
+   <sequence>
+     <element ref="si:elem1"/>
+     <element name="elem1" type="decimal" form="qualified"/>
+   </sequence>
+ </group>
+ 
+ <element name="elem1" type="string"/>
+ 
+ </schema>
+ 
+ 3_7si21.xml
+ ===========
+ <?xml version="1.0"?>
+ <si:root xmlns:xsi         ="http://www.w3.org/2001/XMLSchema-instance"
+          xmlns:si          ="http://www.Test.org/3_7si21"
+          xsi:schemaLocation="http://www.Test.org/3_7si21
+                              3_7si21.xsd">
+ </si:root>
+ 
+ Similar problem occurs with 3_8si36, 3_8si37.
\ 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