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

Re: [Moderator Action] XSV

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 11 Sep 2000 18:34:15 +0100
To: <dsullivan@develop.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b66o2zvc8.fsf@cogsci.ed.ac.uk>
"Dan Sullivan" <dsullivan@develop.com> writes:

> Here are three schemas I have validated using XSV (downloaded and on run on
> a Win2K system)
> 
> I don't think that any of them are valid, but XSV says that they are:
> 
> <schema xmlns='http://www.w3.org/1999/XMLSchema'
>         targetNamespace='htps://www.develop.com:content'
> 		xmlns:tns='htps://www.develop.com:content'
> >
> <simpleType name="myS2" base="string"/>
> <element name="myElement" type="tns:myS"/>
> </schema>
> 
> This is not valid because there is no tns:myS

That's not an error in the schema document as such.  Other schema
documents might provide a definition for tns:myS by the time it gets
used.

> <schema xmlns='http://www.w3.org/1999/XMLSchema'
>         targetNamespace='htps://www.develop.com:content'
> 		xmlns:tns='htps://www.develop.com:content'
> >
> <simpleType name="myS2" base="string"/>
> <element name="myElement" type="myS2"/>
> </schema>
> 
> this is not valid because there is no type myS2 in the
> http://www.w3.org/1999/XMLSchema namespace.

Same answer.

> <schema xmlns='http://www.w3.org/1999/XMLSchema'
>         targetNamespace='htps://www.develop.com:content'
> 		xmlns:tns='htps://www.develop.com:content'
> >
> <element name="myElement" type="urType"/>
> </schema>

Same answer.

In all cases, if you try to use these schemas to validate an instance
which actually contains a 'myElement' element in the relevant
namespace, _then_ you will get an error.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 11 September 2000 13:34:20 GMT

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