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

XSV need fix!?

From: Y Han <yhan@uwo.ca>
Date: Fri, 6 Sep 2002 14:38:51 -0400 (EDT)
Message-ID: <001d01c255d4$944a7310$55106481@dbsl.csd.uwo.ca>
To: <xmlschema-dev@w3.org>

Hi! all,

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

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'
am Files/XSV/rolegraph_0905.xsd' validation='strict' version='XSV
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"
 version ="1.0">

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

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

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:41:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC