You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/03/19 10:54:04 UTC
DO NOT REPLY [Bug 7233] New: -
the any element in an XML Schema seems not to be implemented in the parser
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: xerces-j-dev@xml.apache.org
ReportedBy: aemvanleeuwen@hotmail.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org