Project

Profile

Help

Bug #1505 » newsch3.xsd

Main schema document - Priscilla Walmsley, 2012-04-29 20:39

 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:spc="http://datypic.com/spc"
xmlns="http://datypic.com/ord"
targetNamespace="http://datypic.com/ord"
elementFormDefault="qualified">
<xs:import namespace="http://datypic.com/spc" schemaLocation="temp.xsd"/>
<xs:override schemaLocation="prod.xsd">
<xs:complexType name="ProductType">
<xs:sequence>
<xs:element name="number" type="xs:integer"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="size" type="xs:integer" minOccurs="0"/>
<xs:element ref="spc:giftWrap" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="spc:points"/>
</xs:complexType>
</xs:override>
<xs:complexType name="OrderType">
<xs:sequence>
<xs:element name="product" type="ProductType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="order" type="OrderType"/>
</xs:schema>
(3-3/4)