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=7167>. 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=7167 parser does not validate the XML Schema Schema correctly Summary: parser does not validate the XML Schema Schema correctly Product: Xerces2-J Version: 2.0.1 Platform: PC OS/Version: Other Status: NEW Severity: Major Priority: Other Component: XML Schema datatypes AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When validating the XML Schema for Schemas (or equivilent) the validation fails with error found:Unknown base type 'xs:anySimpleType' for a type 'string' on line: 64 As the Schema Schema is normative this must be a bug. I see lots of other errors from this schema but they are probably fallout from not finding the base type for all of the built in types! Steps to Reproduce: cut the two parts of the XML Schema Schema out of the http://www.w3.org/TR/xmlschema-1 and http://www.w3.org/TR/xmlschema-2. saved in files normModXMLSchema.xsd and normModDataType.xsd file changes: 1) removed doctype DTD stuff from top of files (yuk!) 2) changed import statements to use new datatype file name. 3) changed target name space to "http://www.w3.org/2001/XMLSchema/mod" in both files. 4) defined new name space xmlns:modxs="http://www.w3.org/2001/XMLSchema/mod" in both files. 5) did a replace on all instances of "xs: to "modxs: 6) changed all instances of "modxs:anySimpleType" to "xs:anySimpleType" 7) changed name="schema" to name="mySchema" (so that my tools stopped complaining about schema not being in the right namespace) 8) modified a schema I had previously created to use <mySchema> and set the schema location to normModXMLSchema.xsd. 9) validate the modified schema instance against the modified schema schema. Actual Results: the first few lines of bug output are: main (15:02:55): error found:Unknown base type 'xs:anySimpleType' for a type 'string' on line: 64 main (15:02:55): error found:cos-applicable-facets: Facet 'whiteSpace' is not allowed by this type. on line: 64 main (15:02:55): error found:cos-applicable-facets: Facet 'whiteSpace' is not allowed by this type. on line: 537 main (15:02:55): error found:cos-applicable-facets: Facet 'whiteSpace' is not allowed by this type. on line: 548 main (15:02:55): error found:cos-applicable-facets: Facet 'pattern' is not allowed by this type. on line: 670 main (15:02:55): error found:cos-applicable-facets: Facet 'pattern' is not allowed by this type. on line: 687 main (15:02:55): error found:cos-applicable-facets: Facet 'pattern' is not allowed by this type. on line: 628 main (15:02:55): error found:cos-applicable-facets: Facet 'enumeration' is not allowed by this type. on line: 85 main (15:02:55): error found:cos-applicable-facets: Facet 'enumeration' is not allowed by this type. on line: 873 main (15:02:55): error found:cos-applicable-facets: Facet 'enumeration' is not allowed by this type. on line: 95 main (15:02:55): error found:cos-applicable-facets: Facet 'enumeration' is not allowed by this type. on line: 113 The schema schema spec clearly states that anySimpleType exists: 4.1.6 Simple Type Definition for anySimpleType There is a simple type definition nearly equivalent to the simple version of the ur-type definition present in every schema by definition. It has the following properties Have also seen this bug with Xerces version 1.4.4 and 2.0.0 I can send you the test files if you want them. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
