You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/10/28 11:49:24 UTC
DO NOT REPLY [Bug 14010] New: -
Using 'all' within 'complexContent'
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=14010>.
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=14010
Using 'all' within 'complexContent'
Summary: Using 'all' within 'complexContent'
Product: Xerces-C++
Version: 2.1.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Major
Priority: Other
Component: Validating Parser (Schema) (Xerces 1.5 or up only)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: Eugals@mail.ru
Here is a schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType
name="documentType_pre">
<xs:sequence>
<xs:element name="elem1"
type="xs:string"/>
<xs:element name="elem2" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="documentType">
<xs:complexContent>
<xs:extension base="documentType_pre">
<xs:all>
<xs:element name="elem3"
type="xs:string"/>
<xs:element name="elem4" type="xs:string"/>
</xs:all>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element
name="document" type="documentType"/>
</xs:schema>
It seems be correct (and it works
with XMLSpy)
But xerces (SAXParser::parse) reports error in line 11: "An 'all' model group
that's part of a complex type definition must constitute the entire content type of the
definition".
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org