/xmlbench/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/xmlbench/trunk

« back to all changes in this revision

Viewing changes to xml.files/generated.xsd

  • Committer: Suren A. Chilingaryan
  • Date: 2009-02-16 09:27:17 UTC
  • Revision ID: csa@dside.dyndns.org-20090216092717-wipyvaaw2srxhgns
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
 
2
<xs:schema xmlns:xs="http://www.w3.org/2001/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>