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