W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

Re: [Moderator Action] Linking Schema with instance files

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 12 Feb 2001 11:54:56 +0000
To: Satya Podury <satya@perfect.com>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5bofw8w1yn.fsf@cogsci.ed.ac.uk>
In brief, as this is an old message (sorry):  XSV is telling you
exactly what's wrong:

Satya Podury <satya@perfect.com> writes:

> <importAttempt
> URI='file:/C:/QA/XMLSchema/xml-course/xml-schemas/examples/example01/pers.xsd' namespace='http://www.junnuchunnu.org' outcome='failure'/>
> <notASchema
> filename='file:/C:/QA/XMLSchema/xml-course/xml-schemas/examples/example01/pers.xsd'/>

pers.xsd is not a schema.  Why?  XSV tells you:

> <XMLMessages>
> Warning: Content model for complexType does not allow element element here
>  in unnamed entity at line 8 char 12 of
> file:/C:/QA/XMLSchema/xml-course/xml-schemas/examples/example01/pers.xsd

etc.

>1 <?xml version="1.0"?>
>2 <schema xmlns="http://www.w3.org/2000/10/XMLSchema"
>3 	  targetNamespace="http://www.junnuchunnu.org">
>4         
>5
>6  <element name="personnel">
>7   <complexType>

I'm betting that on line 8 (see the error message above) you have

>8      <element ...

which is not allowed -- you must have <sequence>, <choice> or <all>

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, 12 February 2001 06:54:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:16 GMT