XSV and Schema correctness

Using XSV I got the results set out below.  The results show an error in the
schema.  If this error reporting is accurate, information as to the correct
construct would be welcome..  The test schema below is the simplest test
case I could derive.  

command line (test.xsd in same directory as xsv)
xsv -k -i -o cjwerr.txt test.xsd

contents of file test.xsd
<xsd:schema   xmlns="local://Chris Walton/software
engineering/schemas/Change History"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   
    <xsd:simpleType name="Name">
      <xsd:restriction base="xsd:string">
        <xsd:maxLength value="50"/>
      </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="ObjectInfo">
      <xsd:sequence>
        <xsd:element name="Name"        type="Name"        minOccurs="1"
maxOccurs="1"/>
      </xsd:sequence>
      <xsd:attribute name="id" type="ID" use="required"/>
    </xsd:complexType>

  </xsd:schema>

contents of cjwerr.txt
<?xml version='1.0'?>
<xsv instanceAssessed='false' schemaDocs='test.xsd' schemaErrors='2'
target='[standalone schema assessment]' version='XSV 1.197/1.101 of
2001/07/07 12:10:19' xmlns='http://www.w3.org/2000/05/xsv'>
<schemaError char='22' line='15' phase='instance' resource='file:/C:/Program
Files/XSV/test.xsd'>Undefined type {local://Chris Walton/software
engineering/schemas/Change History}:ID referenced as type definition of
{None}id</schemaError>
<schemaError char='21' line='13' phase='instance' resource='file:/C:/Program
Files/XSV/test.xsd'>Undefined type {local://Chris Walton/software
engineering/schemas/Change History}:Name referenced as type definition of
Name</schemaError>
</xsv>

It is my understanding that id is an XML definition while Name is defined in
the schema being tested.

	Chris Walton
	IT Industry Intelligence Unit
	* 01908 345139
	* Chris.Walton@abbeynational.co.uk
	* Shenley Wood House, Chalkdell Drive, Shenley Wood, Milton Keynes,
MK5 6LA (SWSE03)



	Chris Walton
	IT Industry Intelligence Unit
	* 01908 345139
	* Chris.Walton@abbeynational.co.uk
	* Shenley Wood House, Chalkdell Drive, Shenley Wood, Milton Keynes,
MK5 6LA (SWSE03)



Important:

Internet communications are not necessarily secure and may be intercepted or changed after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish to confirm the origin or content of this communication, please contact the sender using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it without copying, disclosing or otherwise using its contents. Please notify the sender immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. Reg. No. 2294747.
Registered in England.

Received on Wednesday, 22 August 2001 06:47:38 UTC