Good day,

I am trying to validating XML Schema instance against W3's XML Schema
schema. Here is what I have:

(1) test.xsd with the following content:

<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"
            xmlns:test="test"
            targetNamespace="test">


  <xsd:element name="test" type="xsd:string"/>

</xsd:schema>


(2) XMLSchema.xsd from http://www.w3.org/2001/XMLSchema

(3) XMLSchema.dtd from http://www.w3.org/2001/XMLSchema since XMLSchema.xsd
    references it (have no clue why?)

(4) datatypes.dtd from http://www.w3.org/2001/XMLSchema since XMLSchema.dtd
    references it


(5) samples/DOMCount binary as `test'


All this is in /tmp. Now I run:

$ ./test -v=always -n -s -f ./test.xsd

Warning at file /tmp/datatypes.dtd, line 99, char 7
  Message: Attribute 'id' has already been declared for element 'xs:simpleType'

Warning at file /tmp/datatypes.dtd, line 122, char 7
  Message: Attribute 'id' has already been declared for element 'xs:list'

Warning at file /tmp/datatypes.dtd, line 130, char 7
  Message: Attribute 'id' has already been declared for element 'xs:union'

[... more warnings like this ...]

Error at file /tmp/XMLSchema.xsd, line 255, char 95
  Message: SimpleType (http://www.w3.org/2001/XMLSchema:fullDerivationSet) for 
attribute: finalDefault not found

Error at file /tmp/XMLSchema.xsd, line 256, char 86
  Message: SimpleType (http://www.w3.org/2001/XMLSchema:blockSet) for attribute: 
blockDefault not found

Error at file /tmp/XMLSchema.xsd, line 257, char 107
  Message: SimpleType (http://www.w3.org/2001/XMLSchema:formChoice) for attribute: 
attributeFormDefault not found

Error at file /tmp/XMLSchema.xsd, line 258, char 105
  Message: SimpleType (http://www.w3.org/2001/XMLSchema:formChoice) for attribute: 
elementFormDefault not found

[... more errors like this, all in XMLSchema.xsd ...]

Error at file /tmp/test.xsd, line 6, char 36
  Message: No datatype validator was found for this attribute finalDefault.

Error at file /tmp/test.xsd, line 6, char 36
  Message: No datatype validator was found for this attribute blockDefault.

Error at file /tmp/test.xsd, line 6, char 36
  Message: No datatype validator was found for this attribute attributeFormDefault.

Error at file /tmp/test.xsd, line 6, char 36
  Message: No datatype validator was found for this attribute elementFormDefault.


So it seems that according to xerces-c 2.5.0 W3's XMLSchema.xsd is not a 
valid XML Schema instance. Any clues are appreciated. 


thanks,
-boris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to