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/02/06 17:08:31 UTC
DO NOT REPLY [Bug 6275] New: -
Validation fails with 'Unknown content spec type' if a type is extended using xs:all
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=6275>.
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=6275
Validation fails with 'Unknown content spec type' if a type is extended using xs:all
Summary: Validation fails with 'Unknown content spec type' if a
type is extended using xs:all
Product: Xerces-C++
Version: 1.6.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Validating Parser (Schema) (Xerces 1.5 or up only)
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: alby@exceloncorp.com
When an XMLSchema contains this structure
<xs:complexType name='type'>
<xs:complexContent>
<xs:extension base="baseType">
<xs:all>
<xs:element name="el1" type="xs:int"/>
....
the validator fails with "Unknown content spec type".
This because the xs:extension generates a structure like
sequence( base_type_structure, all(element,element...) )
and ComplexTypeInfo::createChildModel, by seeing the initial 'sequence' node,
creates a DFAContentModel wrapper. When the DFAContentModel finds the 'all'
node, it throws the exception.
c:\> saxcount -n -s -f "test simple message.xml"
Fatal Error at file c:\test simple message.xml, line 2, char 116
Message: An exception occured! Type:RuntimeException, Message:Unknown
content spec type
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org