Sync with 5.4.1
[deliverable/titan.core.git] / regression_test / XML / XmlWorkflow / xsd / attrib_restriction_extension.xsd
CommitLineData
3abe9331 1<?xml version="1.0" encoding="UTF-8"?>
2<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
3 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4xmlns:nss="www.example.org/attr/ext/rest"
5 targetNamespace="www.example.org/attr/ext/rest">
6
7
8<xsd:complexType name="e25seq">
9 <xsd:sequence>
10 <xsd:element name="titleElemBase" type="xsd:string"/>
11 <xsd:element name="forenameElemBase" type="xsd:string"/>
12 <xsd:element name="surnameElemBase" type="xsd:string"/>
13 </xsd:sequence>
14 <xsd:attribute name="genderAttrBase" type="xsd:integer"/>
15</xsd:complexType>
16
17<xsd:complexType name="e25seqa">
18 <xsd:complexContent>
19 <xsd:extension base="nss:e25seq">
20 <xsd:sequence>
21 </xsd:sequence>
22 <xsd:attribute name="gender" type="xsd:integer"/>
23 <xsd:attribute name="genderAttrBase" type="xsd:integer"/>
24 </xsd:extension>
25 </xsd:complexContent>
26</xsd:complexType>
27
28<xsd:complexType name="e25seqb">
29 <xsd:complexContent>
30 <xsd:extension base="nss:e25seqa">
31 <xsd:sequence>
32 <xsd:element name="ageElemExt" type="xsd:integer"/>
33 </xsd:sequence>
34 </xsd:extension>
35 </xsd:complexContent>
36</xsd:complexType>
37
38<xsd:complexType name="e25seqc">
39 <xsd:complexContent>
40 <xsd:restriction base="nss:e25seqb">
41 <xsd:sequence>
42 <xsd:element name="ageElemExt" type="xsd:integer"/>
43 </xsd:sequence>
44 <xsd:attribute name="genderAttrBase" type="xsd:integer" use="prohibited"/>
45 <xsd:attribute name="boo" type="xsd:integer"/>
46 </xsd:restriction>
47 </xsd:complexContent>
48</xsd:complexType>
49
50<xsd:complexType name="e25seqd">
51 <xsd:complexContent>
52 <xsd:restriction base="nss:e25seqc">
53 <xsd:sequence>
54 <xsd:element name="ageElemExt" type="xsd:integer"/>
55 </xsd:sequence>
56 <xsd:attribute name="genderAttrBase" type="xsd:integer" use="required"/>
57 </xsd:restriction>
58 </xsd:complexContent>
59</xsd:complexType>
60
61<xsd:element name="comment" type="xsd:string"/>
62 <xsd:complexType name="PurchaseOrderType">
63 <xsd:sequence>
64 <xsd:element name="shipTo" type="xsd:string"/>
65 <xsd:element name="billTo" type="xsd:string"/>
66 <xsd:element ref="nss:comment" minOccurs="0"/>
67 </xsd:sequence>
68 <xsd:attribute name="shipDate" type="xsd:date"/>
69 <xsd:attribute name="orderDate" type="xsd:date"/>
70</xsd:complexType>
71
72<!-- The restricting type is: -->
73<xsd:complexType name="RestrictedPurchaseOrderType">
74 <xsd:complexContent>
75 <xsd:restriction base="nss:PurchaseOrderType">
76 <xsd:sequence>
77 <xsd:element name="shipTo" type="xsd:string"/>
78 <xsd:element ref="nss:comment" minOccurs="1"/>
79 </xsd:sequence>
80 <xsd:attribute name="shipDate" type="xsd:date" use="required" />
81 <xsd:attribute name="boo" type="xsd:date"/>
82 <xsd:attribute name="orderDate" type="xsd:date" use="prohibited" />
83 </xsd:restriction>
84 </xsd:complexContent>
85</xsd:complexType>
86
87<xsd:element name="e23">
88 <xsd:complexType>
89 <xsd:simpleContent>
90 <xsd:extension base="string">
91 <xsd:attribute name="foo" type="xsd:float"/>
92 <xsd:attribute name="bar" type="xsd:integer"/>
93 <xsd:attribute name="base" type="xsd:integer"/>
94 </xsd:extension>
95 </xsd:simpleContent>
96 </xsd:complexType>
97</xsd:element>
98
99
100<xsd:element name="e24">
101 <xsd:complexType>
102 <xsd:simpleContent>
103 <xsd:extension base="nss:e23">
104 <xsd:attribute name="foo" type="xsd:float"/>
105 <xsd:attribute name="goo" type="xsd:integer"/>
106 <xsd:attribute name="base" type="xsd:integer" use="required"/>
107 </xsd:extension>
108 </xsd:simpleContent>
109 </xsd:complexType>
110</xsd:element>
111
112
113<xsd:element name="e25">
114 <xsd:complexType>
115 <xsd:simpleContent>
116 <xsd:restriction base="nss:e24">
117 <xsd:length value="4"/>
118 <xsd:attribute name="foo" type="xsd:float" use="prohibited"/>
119 <xsd:attribute name="goo" type="xsd:integer" use="required"/>
120 <xsd:attribute name="boo" type="xsd:integer"/>
121 <xsd:attribute name="base" type="xsd:integer" use="prohibited"/>
122 </xsd:restriction>
123 </xsd:simpleContent>
124 </xsd:complexType>
125</xsd:element>
126
127<xsd:element name="e26">
128 <xsd:complexType>
129 <xsd:simpleContent>
130 <xsd:extension base="nss:e25">
131 <xsd:attribute name="foo" type="xsd:float" use="required"/>
132 </xsd:extension>
133 </xsd:simpleContent>
134 </xsd:complexType>
135</xsd:element>
136
137</xsd:schema>
This page took 0.040495 seconds and 5 git commands to generate.