bzr branch
http://darksoft.org/webbzr/xmlbench/trunk
1
by Suren A. Chilingaryan
Initial import |
1 |
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
2 |
<xs:schema xmlns:xs="http://www.w3.org/2000/08/XMLSchema"> |
|
3 |
||
4 |
<xs:simpleType name="stringtype"> |
|
5 |
<xs:restriction base="xs:string"/> |
|
6 |
</xs:simpleType>
|
|
7 |
||
8 |
<xs:simpleType name="inttype"> |
|
9 |
<xs:restriction base="xs:positiveInteger"/> |
|
10 |
</xs:simpleType>
|
|
11 |
||
12 |
<xs:simpleType name="dectype"> |
|
13 |
<xs:restriction base="xs:decimal"/> |
|
14 |
</xs:simpleType>
|
|
15 |
||
16 |
<xs:simpleType name="orderidtype"> |
|
17 |
<xs:restriction base="xs:string"> |
|
18 |
<xs:pattern value="[0-9]{6}"/> |
|
19 |
</xs:restriction>
|
|
20 |
</xs:simpleType>
|
|
21 |
||
22 |
<xs:complexType name="shiptotype"> |
|
23 |
<xs:sequence>
|
|
24 |
<xs:element name="name" type="stringtype"/> |
|
25 |
<xs:element name="address" type="stringtype"/> |
|
26 |
<xs:element name="city" type="stringtype"/> |
|
27 |
<xs:element name="country" type="stringtype"/> |
|
28 |
</xs:sequence>
|
|
29 |
</xs:complexType>
|
|
30 |
||
31 |
<xs:complexType name="itemtype"> |
|
32 |
<xs:sequence>
|
|
33 |
<xs:element name="title" type="stringtype"/> |
|
34 |
<xs:element name="note" type="stringtype" minOccurs="0"/> |
|
35 |
<xs:element name="quantity" type="inttype"/> |
|
36 |
<xs:element name="price" type="dectype"/> |
|
37 |
</xs:sequence>
|
|
38 |
</xs:complexType>
|
|
39 |
||
40 |
<xs:complexType name="shipordertype"> |
|
41 |
<xs:sequence>
|
|
42 |
<xs:element name="orderperson" type="stringtype"/> |
|
43 |
<xs:element name="shipto" type="shiptotype"/> |
|
44 |
<xs:element name="item" maxOccurs="unbounded" type="itemtype"/> |
|
45 |
</xs:sequence>
|
|
46 |
<xs:attribute name="orderid" type="orderidtype" use="required"/> |
|
47 |
</xs:complexType>
|
|
48 |
||
49 |
||
50 |
<xs:complexType name="datatype"> |
|
51 |
<xs:sequence>
|
|
52 |
<xs:element name="shiporder" maxOccurs="unbounded" type="shipordertype"/> |
|
53 |
</xs:sequence>
|
|
54 |
</xs:complexType>
|
|
55 |
||
56 |
<xs:element name="data" type="datatype"/> |
|
57 |
||
58 |
</xs:schema>
|