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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

Reply via email to