Re: [Moderator Action] Linking Schema with instance files

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 UTC