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/01/16 19:01:16 UTC
DO NOT REPLY [Bug 5884] New: -
wildcard validation error ("processContents" incorrectly handled) + typo in error message
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=5884>.
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=5884
wildcard validation error ("processContents" incorrectly handled) + typo in error message
Summary: wildcard validation error ("processContents" incorrectly
handled) + typo in error message
Product: Xerces2-J
Version: 2.0.0 [beta 4]
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: achille@us.ibm.com
Hi,
I tried to validate a schema using the schema for schemas. It seems that Xerces
beta 4 does not handle correctly the schema for schemas and validation of an
element against a wildcard.
I used the sample program dom.ASBuilder with the following command line
argument : " -f -a http://www.w3.org/2001/XMLSchema.xsd -i
file:/C:/temp/testcase.xml" .
TESTCASE.xml
<?xml version="1.0"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" >
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo >
<validationInfo/>
</xs:appinfo>
</xs:annotation>
</xs:schema>
OUTPUT :
[tons of errors wrongly detected in the schema for schemas ]
[Error] C:\temp\testcase.xml:13:21: cvc-complex-type.2.4.c: The matching
wildcard is strict, but no declaratoin can be found for
element 'validationInfo'.
First, there is a typo in the error message. "declaratOIn" should be replaced by
"declaratIOn".
The definition of appinfo in the schema for schema is as below (note that
the "processContents" attribute of the wildcard is "lax" whereas the error
message wrongly suggests it is "strict") :
<xs:element name="appinfo" id="appinfo">
<xs:annotation>
<xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-
appinfo"/>
</xs:annotation>
<xs:complexType mixed="true">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
</xs:sequence>
<xs:attribute name="source" type="xs:anyURI"/>
</xs:complexType>
</xs:element>
Achille.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org