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=7233>. 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=7233 the any element in an XML Schema seems not to be implemented in the parser Summary: the any element in an XML Schema seems not to be implemented in the parser Product: Xerces2-J Version: 2.0.1 Platform: PC OS/Version: Other Status: NEW Severity: Critical Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Overview Description: Using the 'any' element in a schema seems not to be recongnized by a validating SaxParser. Whether you define the 'any' element or not, the error message thrown by the parser remains the same. ("The matching wildcard is strict, but no declaration can be found for element '.....'). Steps to Reproduce: The following xml should be validated against the submitted schema using a validating Sax parser +++++++ XML SAMPLE ++++++++++>> <?xml version="1.0"?> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Request.xsd" type="information" product="hallo"> <information request-id="ID-1"/> </request> +++++++ SCHEMA SAMPLE ++++++++++>> <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="request"> <xsd:complexType> <xsd:sequence> <xsd:any namespace="##local" minOccurs="0" maxOccurs="unbounded" processContents="skip"/> </xsd:sequence> <xsd:attribute name="product" type="xsd:string" use="required"/> <xsd:attribute name="type" use="required"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="product"/> <xsd:enumeration value="information"/> <xsd:enumeration value="update"/> <xsd:enumeration value="redo"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> </xsd:element> </xsd:schema> Actual Results: The parser throws the error: "The matching wildcard is strict, but no declaration can be found for element 'information". Whether you define the 'any' element or not, the error message thrown by the parser remains the same. Expected Results: The parser should have ignored any of the elements within the 'request' element. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
