- From: Jeff Rafter <jeffrafter@definedweb.com>
- Date: Thu, 22 Mar 2001 23:33:42 -0800
- 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 UTC