W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

XSV v.s XML Spy (different result)?

From: Y. Han <yhan@uwo.ca>
Date: Fri, 6 Sep 2002 11:50:39 -0400 (EDT)
Message-ID: <002301c255bd$a49c93e0$28646481@greatmind>
To: <xmlschema-dev@w3.org>
Hi! all,

I designed my xml schema and use XSV and XML spy to validate the schema individually.

However, the result is different.

XSV 's reult is that my schema ok. see
--------------------------------------------------
C:\Program Files\XSV>xsv rolegraph_0905.xsd
<?xml version='1.0'?>
<xsv docElt='{http://www.w3.org/2001/XMLSchema}schema' instanceAssessed='true' i
nstanceErrors='0' rootType='[Anonymous]' schemaErrors='0' target='file:/C:/Progr
am Files/XSV/rolegraph_0905.xsd' validation='strict' version='XSV 1.203.2.45/1.1
06.2.22 of 2002/01/11 16:40:28' xmlns='http://www.w3.org/2000/05/xsv'/>
-------------------------------------------------------------------------

But XML spy told me that the schema is not "ok". 

Here is a part of the Schema.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 targetNamespace="http://www.quest.ca/graph" 
 xmlns="http://www.quest.ca/graph"
 xmlns:rg="http://www.quest.ca/graph"
 elementFormDefault="qualified"
 version ="1.0">

<!-- access to the xml: attribute group for xml:lang -->
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
 schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<!-- ************ Define Privilege Type ************ -->
<xsd:complexType name="PrivilegeType">
   <xsd:sequence>
 <xsd:element name="PName"   type="xsd:Name"/>
 <xsd:element name="PObject" type="xsd:Name"/>
 <xsd:element name="PAccess" type="xsd:string"/>
   </xsd:sequence>
</xsd:complexType>

<!-- Define Privilege Set Type -->
<xsd:simpleType name="PrivilegeSetType">
   <xsd:list itemType="PrivilegeType"/>  <--- this line has problems -->
</xsd:simpleType>



My questions are:

1. XML spy said the <xsd:list itemType="PrivilegeType"> is not valid. (is the list cnnot have the itemType from "complexType", right? or
does it related to Namespace)
p.s. The error msg from XML Spy is "this schema doesn't appear to be valid by itself. Schema error - undefined value for ' itemType' encountered.

2. which validator is authorized? XSV or XML Spy?


any thought will welcome!
Received on Friday, 6 September 2002 14:43:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT