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

<include> with XSV (web-version)

From: Jeff Rafter <jeffrafter@definedweb.com>
Date: Thu, 22 Mar 2001 23:33:42 -0800
Message-ID: <004201c0b36b$96869990$f181fea9@lazarus>
To: <xmlschema-dev@w3.org>
Can someone explain where I am going wrong here?  I have two documents

http://xml.definedsys.com/schema/element.xml
http://xml.definedsys.com/schema/children.xml

<?xml version='1.0' encoding='UTF-8'?>
<xs:schema targetNamespace="http://xml.definedsys.com/samples"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
 <xs:include
schemaLocation="http://xml.definedsys.com/schema/children.xml"/>
 <xs:element name="root" type="children"/>
</xs:schema>

<?xml version='1.0' encoding='UTF-8'?>
<xs:schema targetNamespace="http://xml.definedsys.com/samples"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
 <xs:complexType name="children">
   <xs:sequnce>
     <xs:element name="child1" type="xs:string"/>
     <xs:element name="child2" type="xs:string"/>
     <xs:element name="child3" type="xs:string"/>
   </xs:sequnce>
 </xs:complexType>
 <!-- This should throw an error -->
 <xs:error/>
</xs:schema>

But I get no errors?  Obviously <xs:error> should cause a problem.  XSV says
it was strict, but It doesn't mention anything about children.xml-- as if it
is ignoring it altogether.

Thanks,
Jeff Rafter
Received on Friday, 23 March 2001 02:33:26 GMT

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