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 2002/08/01 12:21:35 UTC
DO NOT REPLY [Bug 11362] New: -
Xerces breaks "Schema Component Constraint: Element Declarations Consistent"
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11362>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11362
Xerces breaks "Schema Component Constraint: Element Declarations Consistent"
Summary: Xerces breaks "Schema Component Constraint: Element
Declarations Consistent"
Product: Xerces2-J
Version: 2.0.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: apache@flower.powernet.co.uk
The following schema breaks the constraint given at
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cos-element-consistent. It
is validated as OK by xerces. (A validating instance is also given)
strange.xsd
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://localhost/strange"
elementFormDefault="qualified">
<element name="A">
<complexType>
<sequence>
<element name="A" type="string"/>
<element name="A" type="date"/>
</sequence>
</complexType>
</element>
</schema>
strange.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- strange.xml -->
<A xmlns="http://localhost/strange"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://localhost/strange strange.xsd">
<A>blah</A>
<A>2001-11-01</A>
</A>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org