-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathExciseOffice.xsd
150 lines (150 loc) · 5.66 KB
/
ExciseOffice.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:EMCS:V3.13" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:exo="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:WEBSERVICE:ExciseOffices:V3.13"
targetNamespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:WEBSERVICE:ExciseOffices:V3.13"
elementFormDefault="qualified" attributeFormDefault="qualified" version="1.00">
<xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE4:EMCS:V3.13" schemaLocation="types.xsd"/>
<!--=========================================-->
<!--===== EXCISE OFFICE =====================-->
<!--=========================================-->
<!--===== Root Element =====-->
<xs:element name="ExciseOffices">
<xs:complexType>
<xs:sequence>
<xs:element ref="exo:ExciseOffice" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ExciseOffice" type="exo:ExciseOfficeType"/>
<xs:complexType name="ExciseOfficeType">
<xs:sequence>
<xs:element name="ExciseOfficeNumber" type="exo:ExciseOfficeCodeType"/>
<xs:element name="ExciseOfficeCountryCode" type="exo:CountryCodeType"/>
<xs:element name="ContactInformation" type="exo:ContactInformationType"/>
<xs:element name="LanguageSpecificData" type="exo:LanguageSpecificDataType"/>
<xs:element name="Action" type="exo:ActionType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ContactInformationType">
<xs:sequence>
<xs:element name="PhoneNumber" type="exo:PhoneNumberType" minOccurs="0"/>
<xs:element name="FaxNumber" type="exo:PhoneNumberType" minOccurs="0"/>
<xs:element name="EmailAddress" type="exo:EmailAddressType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LanguageSpecificDataType">
<xs:sequence>
<xs:element name="NameAndAddress" type="exo:NameAndAddressType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="NameAndAddressType">
<xs:sequence>
<xs:element name="Name" type="exo:NameType"/>
<xs:element name="Address" type="exo:AddressType"/>
</xs:sequence>
<xs:attribute name="language" type="exo:LanguageCodeType" use="required"/>
</xs:complexType>
<xs:complexType name="AddressType">
<xs:sequence>
<xs:element name="StreetNumber" type="exo:StreetNumberType" minOccurs="0"/>
<xs:element name="StreetName" type="exo:StreetType" minOccurs="0"/>
<xs:element name="PostCode" type="exo:PostCodeType" minOccurs="0"/>
<xs:element name="City" type="exo:CityType" minOccurs="0"/>
<xs:element name="CountryCode" type="exo:CountryCodeType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ActionType">
<xs:sequence>
<xs:element name="Operation" type="exo:ModificationType"/>
<xs:element name="ActivationDate" type="emcs:DateType"/>
<xs:element name="ActionIdentifier" type="exo:ActionIdentifierType"/>
<xs:element name="ResponsibleDataManager" type="exo:ResponsibleDataManagerType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<!--===== IE Specific Data Items Declarations =====-->
<xs:simpleType name="ActionIdentificationType">
<xs:restriction base="xs:token">
<xs:maxLength value="20"/>
<xs:pattern value=".{1,20}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CityType">
<xs:restriction base="xs:token">
<xs:maxLength value="50"/>
<xs:pattern value=".{1,50}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="NameType">
<xs:restriction base="xs:token">
<xs:maxLength value="35"/>
<xs:pattern value=".{1,35}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PostCodeType">
<xs:restriction base="xs:token">
<xs:maxLength value="10"/>
<xs:pattern value=".{1,10}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StreetNumberType">
<xs:restriction base="xs:token">
<xs:maxLength value="11"/>
<xs:pattern value=".{11}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="StreetType">
<xs:restriction base="xs:token">
<xs:maxLength value="65"/>
<xs:pattern value=".{1,65}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PhoneNumberType">
<xs:restriction base="xs:token">
<xs:maxLength value="18"/>
<xs:pattern value=".{1,18}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="EmailAddressType">
<xs:restriction base="xs:token">
<xs:maxLength value="70"/>
<xs:pattern value=".{1,70}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LanguageCodeType">
<xs:restriction base="xs:token">
<xs:length value="2"/>
<xs:pattern value="([a-zA-Z]){2}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="CountryCodeType">
<xs:restriction base="xs:token">
<xs:length value="2"/>
<xs:pattern value="([a-zA-Z]){2}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ExciseOfficeCodeType">
<xs:restriction base="xs:token">
<xs:length value="8"/>
<xs:pattern value="[A-Z]{2}[a-zA-Z0-9]{6}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ActionIdentifierType">
<xs:restriction base="xs:token">
<xs:maxLength value="20"/>
<xs:pattern value=".{1,20}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ResponsibleDataManagerType">
<xs:restriction base="xs:token">
<xs:maxLength value="35"/>
<xs:pattern value=".{1,35}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ModificationType">
<xs:restriction base="xs:token">
<xs:enumeration value="C"/>
<xs:enumeration value="U"/>
<xs:enumeration value="I"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>