epb_view_models 2.0.19 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  3. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  4. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  5. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  6. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  7. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  8. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  9. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  10. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  11. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  12. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  13. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  14. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  15. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  16. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  17. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  18. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  19. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  20. data/lib/epb_view_models.rb +1 -1
  21. data/lib/view_model/rd_sap_schema_210/common_schema.rb +2 -2
  22. metadata +2 -2
@@ -1,261 +1,261 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns="EPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="EPC" attributeFormDefault="unqualified" version="LIG-NIR-19.0">
3
- <xs:annotation>
4
- <xs:documentation>
5
- This schema is used to provide
6
- (a) the texts of recommendations on EPCs (by country)
7
- (b) addenda that may appear on RdSAP EPCs (same for all countries)
8
- (c) the options for Related Party Disclosure (same for all countries)
9
- (d) the options for Tenure (same for all countries)
10
- (e) the options for Transaction Type (by country)
11
- (f) the options for Previous EPC Reason Code (by country)
12
- </xs:documentation>
13
- </xs:annotation>
14
- <xs:element name="ExternalDefinitions" type="ExternalDefinitions"/>
15
- <xs:complexType name="ExternalDefinitions">
16
- <xs:sequence>
17
- <xs:element name="Revision-Number" type="xs:string">
18
- <xs:annotation>
19
- <xs:documentation>The version number of the latest revision to any of the texts</xs:documentation>
20
- </xs:annotation>
21
- </xs:element>
22
- <xs:element name="Revision-Date" type="xs:date">
23
- <xs:annotation>
24
- <xs:documentation>The date of the latest revision to any of the texts</xs:documentation>
25
- </xs:annotation>
26
- </xs:element>
27
- <xs:element name="Country" type="Country" maxOccurs="3"/>
28
- <xs:element name="Addendum" type="Addendum" minOccurs="0" maxOccurs="unbounded"/>
29
- <xs:element name="Tenure" type="Tenure" minOccurs="0" maxOccurs="unbounded"></xs:element>
30
- <xs:element name="Related-Party-Disclosure" type="Related-Party-Disclosure" minOccurs="0" maxOccurs="unbounded">
31
- <xs:annotation>
32
- <xs:documentation>List of possible texts for Related Party Disclosure on EPCs</xs:documentation>
33
- </xs:annotation>
34
- </xs:element>
35
- </xs:sequence>
36
- </xs:complexType>
37
- <xs:complexType name="Country">
38
- <xs:sequence>
39
- <xs:element name="Country-Code" type="UKCountryCode"/>
40
- <xs:element name="Average-SAP-Rating" type="EnergyRatingType">
41
- <xs:annotation>
42
- <xs:documentation>The average SAP rating for the country, to be shown on the EPC. If not used on the EPC, it may be 0</xs:documentation>
43
- </xs:annotation>
44
- </xs:element>
45
- <xs:element name="Average-EI-Rating" type="EnergyRatingType" minOccurs="0">
46
- <xs:annotation>
47
- <xs:documentation>The average Environmental Impact rating for the country, to be shown on the EPC. If not used on the EPC, it may be 0 or omitted</xs:documentation>
48
- </xs:annotation>
49
- </xs:element>
50
- <xs:element name="Recommendation" type="Recommendation" maxOccurs="unbounded"/>
51
- <xs:element name="Footnote-Text" type="Sentence" minOccurs="0" maxOccurs="2"/>
52
- <xs:element name="Transaction-Type" type="Transaction-Type" maxOccurs="unbounded">
53
- <xs:annotation>
54
- <xs:documentation>Transaction types are given separately for each country since the list may differ</xs:documentation>
55
- </xs:annotation>
56
- </xs:element>
57
- <xs:element name="Previous-EPC-Reason-Code" type="Previous-EPC-Reason-Code" minOccurs="0" maxOccurs="unbounded">
58
- <xs:annotation>
59
- <xs:documentation>Previous EPC reason codes are given separately for each country since the list may differ</xs:documentation>
60
- </xs:annotation>
61
- </xs:element>
62
- </xs:sequence>
63
- </xs:complexType>
64
- <xs:complexType name="Recommendation">
65
- <xs:sequence>
66
- <xs:element name="Improvement-Number" type="xs:positiveInteger">
67
- <xs:annotation>
68
- <xs:documentation>Recommendations are selected by recommendation number according to the criteria in Appendix T of the SAP specification.</xs:documentation>
69
- </xs:annotation>
70
- </xs:element>
71
- <xs:element name="Improvement-Summary" type="Sentence" maxOccurs="2">
72
- <xs:annotation>
73
- <xs:documentation>A short description of the improvement. English only, or English and Welsh</xs:documentation>
74
- </xs:annotation>
75
- </xs:element>
76
- <xs:element name="Improvement-Summary-2" type="Sentence" minOccurs="0" maxOccurs="2">
77
- <xs:annotation>
78
- <xs:documentation>A short description of the improvement. English only, or English and Welsh</xs:documentation>
79
- </xs:annotation>
80
- </xs:element>
81
- <xs:element name="Improvement-Heading" type="Sentence" maxOccurs="2">
82
- <xs:annotation>
83
- <xs:documentation>Text to precede the improvement description. English only, or English and Welsh</xs:documentation>
84
- </xs:annotation>
85
- </xs:element>
86
- <xs:element name="Improvement-Description" type="Sentence" maxOccurs="2">
87
- <xs:annotation>
88
- <xs:documentation>Detailed description of the improvement. English only, or English and Welsh</xs:documentation>
89
- </xs:annotation>
90
- </xs:element>
91
- <xs:element name="Has-Footnote" type="xs:boolean" default="false" minOccurs="0">
92
- <xs:annotation>
93
- <xs:documentation>If true the Footnote-Text appears at the bottom of the page.</xs:documentation>
94
- </xs:annotation>
95
- </xs:element>
96
- </xs:sequence>
97
- </xs:complexType>
98
- <xs:complexType name="Addendum">
99
- <xs:annotation>
100
- <xs:documentation>Addendum-Number is unique for the text concerned. If an addendum is deleted the number will not be re-used.</xs:documentation>
101
- </xs:annotation>
102
- <xs:sequence>
103
- <xs:element name="Addendum-Number" type="xs:positiveInteger">
104
- <xs:annotation>
105
- <xs:documentation>The text of an addendum is picked up via the Addendum-Number.</xs:documentation>
106
- </xs:annotation>
107
- </xs:element>
108
- <xs:element name="Circumstances" type="xs:string">
109
- <xs:annotation>
110
- <xs:documentation>The circumstances under which this addendum should be included.</xs:documentation>
111
- </xs:annotation>
112
- </xs:element>
113
- <xs:element name="Addendum-Text" type="Sentence" minOccurs="2" maxOccurs="2">
114
- <xs:annotation>
115
- <xs:documentation>Text to be included on the EPC (English and Welsh versions).</xs:documentation>
116
- </xs:annotation>
117
- </xs:element>
118
- </xs:sequence>
119
- </xs:complexType>
120
- <xs:complexType name="Tenure">
121
- <xs:sequence>
122
- <xs:element name="Tenure-Code" type="TenureCode"></xs:element>
123
- <xs:element name="Tenure-Text" type="xs:string"></xs:element>
124
- </xs:sequence>
125
- </xs:complexType>
126
- <xs:simpleType name="TenureCode">
127
- <xs:annotation>
128
- <xs:documentation>TenureCode = 0 (unknown) is applicable only in the case of a new dwelling for which the intended tenure in not known. It is not to be used for an existing dwelling</xs:documentation>
129
- </xs:annotation>
130
- <xs:restriction base="xs:string">
131
- <xs:enumeration value="1">
132
- <xs:annotation>
133
- <xs:documentation>Owner-occupied</xs:documentation>
134
- </xs:annotation>
135
- </xs:enumeration>
136
- <xs:enumeration value="2">
137
- <xs:annotation>
138
- <xs:documentation>Rented (social)</xs:documentation>
139
- </xs:annotation>
140
- </xs:enumeration>
141
- <xs:enumeration value="3">
142
- <xs:annotation>
143
- <xs:documentation>Rented (private)</xs:documentation>
144
- </xs:annotation>
145
- </xs:enumeration>
146
- <xs:enumeration value="ND">
147
- <xs:annotation>
148
- <xs:documentation>Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is not to be used for an existing dwelling</xs:documentation>
149
- </xs:annotation>
150
- </xs:enumeration>
151
- </xs:restriction>
152
- </xs:simpleType>
153
- <xs:complexType name="Related-Party-Disclosure">
154
- <xs:annotation>
155
- <xs:documentation>List of possible texts for Related Party Disclosure on EPCs</xs:documentation>
156
- </xs:annotation>
157
- <xs:sequence>
158
- <xs:element name="Disclosure-Code" type="xs:positiveInteger"/>
159
- <xs:element name="Disclosure-Text" type="Sentence" minOccurs="2" maxOccurs="2"/>
160
- </xs:sequence>
161
- </xs:complexType>
162
- <xs:complexType name="Transaction-Type">
163
- <xs:annotation>
164
- <xs:documentation>List of possible Transaction Types for EPCs. The transaction type indicates the reason for creating the EPC</xs:documentation>
165
- </xs:annotation>
166
- <xs:sequence>
167
- <xs:element name="Display-Order" type="xs:positiveInteger">
168
- <xs:annotation>
169
- <xs:documentation>Number indicating the order in which the transaction types are to be presented to a software user.
170
- These numbers might not be consecutive. The transaction types are to be shown with the lowest display number first through to the highest shown last</xs:documentation>
171
- </xs:annotation>
172
- </xs:element>
173
- <xs:element name="Transaction-Code" type="xs:positiveInteger">
174
- <xs:annotation>
175
- <xs:documentation>Code to be used for Transaction-Type in the lodgement XML</xs:documentation>
176
- </xs:annotation>
177
- </xs:element>
178
- <xs:element name="Transaction-Text" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
179
- <xs:element name="In-RdSAP" type="xs:boolean">
180
- <xs:annotation>
181
- <xs:documentation>If false, transaction type is to be omitted when RdSAP is being used</xs:documentation>
182
- </xs:annotation>
183
- </xs:element>
184
- </xs:sequence>
185
- </xs:complexType>
186
- <xs:simpleType name="LanguageCode">
187
- <xs:restriction base="xs:string">
188
- <xs:enumeration value="1">
189
- <xs:annotation>
190
- <xs:documentation>English</xs:documentation>
191
- </xs:annotation>
192
- </xs:enumeration>
193
- <xs:enumeration value="2">
194
- <xs:annotation>
195
- <xs:documentation>Welsh</xs:documentation>
196
- </xs:annotation>
197
- </xs:enumeration>
198
- </xs:restriction>
199
- </xs:simpleType>
200
- <xs:simpleType name="UKCountryCode">
201
- <xs:annotation>
202
- <xs:documentation>Code which indicates the country within the UK, taken from BS 6879.</xs:documentation>
203
- </xs:annotation>
204
- <xs:restriction base="xs:string">
205
- <xs:enumeration value="EAW">
206
- <xs:annotation>
207
- <xs:documentation>England and Wales</xs:documentation>
208
- </xs:annotation>
209
- </xs:enumeration>
210
- <xs:enumeration value="SCT">
211
- <xs:annotation>
212
- <xs:documentation>Scotland</xs:documentation>
213
- </xs:annotation>
214
- </xs:enumeration>
215
- <xs:enumeration value="NIR">
216
- <xs:annotation>
217
- <xs:documentation>Northern Ireland</xs:documentation>
218
- </xs:annotation>
219
- </xs:enumeration>
220
- </xs:restriction>
221
- </xs:simpleType>
222
- <xs:element name="Sentence" type="Sentence"/>
223
- <xs:complexType name="Sentence">
224
- <xs:annotation>
225
- <xs:documentation>String value with a language code for natural-language text.</xs:documentation>
226
- </xs:annotation>
227
- <xs:simpleContent>
228
- <xs:extension base="xs:string">
229
- <xs:attribute name="language" type="LanguageCode" use="required">
230
- <xs:annotation>
231
- <xs:documentation>Identifies the language that the sentence is recorded in.</xs:documentation>
232
- </xs:annotation>
233
- </xs:attribute>
234
- </xs:extension>
235
- </xs:simpleContent>
236
- </xs:complexType>
237
- <xs:simpleType name="EnergyRatingType">
238
- <xs:restriction base="xs:integer">
239
- <xs:minInclusive value="0"/>
240
- </xs:restriction>
241
- </xs:simpleType>
242
- <xs:complexType name="Previous-EPC-Reason-Code">
243
- <xs:annotation>
244
- <xs:documentation>List of possible previous EPC reason codes for EPCs. The code indicates the reason for updating an EPC</xs:documentation>
245
- </xs:annotation>
246
- <xs:sequence>
247
- <xs:element name="Display-Order" type="xs:positiveInteger" minOccurs="1" maxOccurs="1">
248
- <xs:annotation>
249
- <xs:documentation>Number indicating the order in which the previous EPC reason codes are to be presented to a software user.
250
- These numbers might not be consecutive. The previous EPC reason codes are to be shown with the lowest display number first through to the highest shown last</xs:documentation>
251
- </xs:annotation>
252
- </xs:element>
253
- <xs:element name="Reason-Code" type="xs:positiveInteger" minOccurs="1" maxOccurs="1">
254
- <xs:annotation>
255
- <xs:documentation>Code to be used for Previous-EPC-Reason-Code in the lodgement XML</xs:documentation>
256
- </xs:annotation>
257
- </xs:element>
258
- <xs:element name="Reason-Text" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
259
- </xs:sequence>
260
- </xs:complexType>
261
- </xs:schema>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xs:schema xmlns="EPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="EPC" attributeFormDefault="unqualified" version="LIG-NIR-19.0">
3
+ <xs:annotation>
4
+ <xs:documentation>
5
+ This schema is used to provide
6
+ (a) the texts of recommendations on EPCs (by country)
7
+ (b) addenda that may appear on RdSAP EPCs (same for all countries)
8
+ (c) the options for Related Party Disclosure (same for all countries)
9
+ (d) the options for Tenure (same for all countries)
10
+ (e) the options for Transaction Type (by country)
11
+ (f) the options for Previous EPC Reason Code (by country)
12
+ </xs:documentation>
13
+ </xs:annotation>
14
+ <xs:element name="ExternalDefinitions" type="ExternalDefinitions"/>
15
+ <xs:complexType name="ExternalDefinitions">
16
+ <xs:sequence>
17
+ <xs:element name="Revision-Number" type="xs:string">
18
+ <xs:annotation>
19
+ <xs:documentation>The version number of the latest revision to any of the texts</xs:documentation>
20
+ </xs:annotation>
21
+ </xs:element>
22
+ <xs:element name="Revision-Date" type="xs:date">
23
+ <xs:annotation>
24
+ <xs:documentation>The date of the latest revision to any of the texts</xs:documentation>
25
+ </xs:annotation>
26
+ </xs:element>
27
+ <xs:element name="Country" type="Country" maxOccurs="3"/>
28
+ <xs:element name="Addendum" type="Addendum" minOccurs="0" maxOccurs="unbounded"/>
29
+ <xs:element name="Tenure" type="Tenure" minOccurs="0" maxOccurs="unbounded"></xs:element>
30
+ <xs:element name="Related-Party-Disclosure" type="Related-Party-Disclosure" minOccurs="0" maxOccurs="unbounded">
31
+ <xs:annotation>
32
+ <xs:documentation>List of possible texts for Related Party Disclosure on EPCs</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:element>
35
+ </xs:sequence>
36
+ </xs:complexType>
37
+ <xs:complexType name="Country">
38
+ <xs:sequence>
39
+ <xs:element name="Country-Code" type="UKCountryCode"/>
40
+ <xs:element name="Average-SAP-Rating" type="EnergyRatingType">
41
+ <xs:annotation>
42
+ <xs:documentation>The average SAP rating for the country, to be shown on the EPC. If not used on the EPC, it may be 0</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:element>
45
+ <xs:element name="Average-EI-Rating" type="EnergyRatingType" minOccurs="0">
46
+ <xs:annotation>
47
+ <xs:documentation>The average Environmental Impact rating for the country, to be shown on the EPC. If not used on the EPC, it may be 0 or omitted</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:element>
50
+ <xs:element name="Recommendation" type="Recommendation" maxOccurs="unbounded"/>
51
+ <xs:element name="Footnote-Text" type="Sentence" minOccurs="0" maxOccurs="2"/>
52
+ <xs:element name="Transaction-Type" type="Transaction-Type" maxOccurs="unbounded">
53
+ <xs:annotation>
54
+ <xs:documentation>Transaction types are given separately for each country since the list may differ</xs:documentation>
55
+ </xs:annotation>
56
+ </xs:element>
57
+ <xs:element name="Previous-EPC-Reason-Code" type="Previous-EPC-Reason-Code" minOccurs="0" maxOccurs="unbounded">
58
+ <xs:annotation>
59
+ <xs:documentation>Previous EPC reason codes are given separately for each country since the list may differ</xs:documentation>
60
+ </xs:annotation>
61
+ </xs:element>
62
+ </xs:sequence>
63
+ </xs:complexType>
64
+ <xs:complexType name="Recommendation">
65
+ <xs:sequence>
66
+ <xs:element name="Improvement-Number" type="xs:positiveInteger">
67
+ <xs:annotation>
68
+ <xs:documentation>Recommendations are selected by recommendation number according to the criteria in Appendix T of the SAP specification.</xs:documentation>
69
+ </xs:annotation>
70
+ </xs:element>
71
+ <xs:element name="Improvement-Summary" type="Sentence" maxOccurs="2">
72
+ <xs:annotation>
73
+ <xs:documentation>A short description of the improvement. English only, or English and Welsh</xs:documentation>
74
+ </xs:annotation>
75
+ </xs:element>
76
+ <xs:element name="Improvement-Summary-2" type="Sentence" minOccurs="0" maxOccurs="2">
77
+ <xs:annotation>
78
+ <xs:documentation>A short description of the improvement. English only, or English and Welsh</xs:documentation>
79
+ </xs:annotation>
80
+ </xs:element>
81
+ <xs:element name="Improvement-Heading" type="Sentence" maxOccurs="2">
82
+ <xs:annotation>
83
+ <xs:documentation>Text to precede the improvement description. English only, or English and Welsh</xs:documentation>
84
+ </xs:annotation>
85
+ </xs:element>
86
+ <xs:element name="Improvement-Description" type="Sentence" maxOccurs="2">
87
+ <xs:annotation>
88
+ <xs:documentation>Detailed description of the improvement. English only, or English and Welsh</xs:documentation>
89
+ </xs:annotation>
90
+ </xs:element>
91
+ <xs:element name="Has-Footnote" type="xs:boolean" default="false" minOccurs="0">
92
+ <xs:annotation>
93
+ <xs:documentation>If true the Footnote-Text appears at the bottom of the page.</xs:documentation>
94
+ </xs:annotation>
95
+ </xs:element>
96
+ </xs:sequence>
97
+ </xs:complexType>
98
+ <xs:complexType name="Addendum">
99
+ <xs:annotation>
100
+ <xs:documentation>Addendum-Number is unique for the text concerned. If an addendum is deleted the number will not be re-used.</xs:documentation>
101
+ </xs:annotation>
102
+ <xs:sequence>
103
+ <xs:element name="Addendum-Number" type="xs:positiveInteger">
104
+ <xs:annotation>
105
+ <xs:documentation>The text of an addendum is picked up via the Addendum-Number.</xs:documentation>
106
+ </xs:annotation>
107
+ </xs:element>
108
+ <xs:element name="Circumstances" type="xs:string">
109
+ <xs:annotation>
110
+ <xs:documentation>The circumstances under which this addendum should be included.</xs:documentation>
111
+ </xs:annotation>
112
+ </xs:element>
113
+ <xs:element name="Addendum-Text" type="Sentence" minOccurs="2" maxOccurs="2">
114
+ <xs:annotation>
115
+ <xs:documentation>Text to be included on the EPC (English and Welsh versions).</xs:documentation>
116
+ </xs:annotation>
117
+ </xs:element>
118
+ </xs:sequence>
119
+ </xs:complexType>
120
+ <xs:complexType name="Tenure">
121
+ <xs:sequence>
122
+ <xs:element name="Tenure-Code" type="TenureCode"></xs:element>
123
+ <xs:element name="Tenure-Text" type="xs:string"></xs:element>
124
+ </xs:sequence>
125
+ </xs:complexType>
126
+ <xs:simpleType name="TenureCode">
127
+ <xs:annotation>
128
+ <xs:documentation>TenureCode = 0 (unknown) is applicable only in the case of a new dwelling for which the intended tenure in not known. It is not to be used for an existing dwelling</xs:documentation>
129
+ </xs:annotation>
130
+ <xs:restriction base="xs:string">
131
+ <xs:enumeration value="1">
132
+ <xs:annotation>
133
+ <xs:documentation>Owner-occupied</xs:documentation>
134
+ </xs:annotation>
135
+ </xs:enumeration>
136
+ <xs:enumeration value="2">
137
+ <xs:annotation>
138
+ <xs:documentation>Rented (social)</xs:documentation>
139
+ </xs:annotation>
140
+ </xs:enumeration>
141
+ <xs:enumeration value="3">
142
+ <xs:annotation>
143
+ <xs:documentation>Rented (private)</xs:documentation>
144
+ </xs:annotation>
145
+ </xs:enumeration>
146
+ <xs:enumeration value="ND">
147
+ <xs:annotation>
148
+ <xs:documentation>Not defined - use in the case of a new dwelling for which the intended tenure in not known. It is not to be used for an existing dwelling</xs:documentation>
149
+ </xs:annotation>
150
+ </xs:enumeration>
151
+ </xs:restriction>
152
+ </xs:simpleType>
153
+ <xs:complexType name="Related-Party-Disclosure">
154
+ <xs:annotation>
155
+ <xs:documentation>List of possible texts for Related Party Disclosure on EPCs</xs:documentation>
156
+ </xs:annotation>
157
+ <xs:sequence>
158
+ <xs:element name="Disclosure-Code" type="xs:positiveInteger"/>
159
+ <xs:element name="Disclosure-Text" type="Sentence" minOccurs="2" maxOccurs="2"/>
160
+ </xs:sequence>
161
+ </xs:complexType>
162
+ <xs:complexType name="Transaction-Type">
163
+ <xs:annotation>
164
+ <xs:documentation>List of possible Transaction Types for EPCs. The transaction type indicates the reason for creating the EPC</xs:documentation>
165
+ </xs:annotation>
166
+ <xs:sequence>
167
+ <xs:element name="Display-Order" type="xs:positiveInteger">
168
+ <xs:annotation>
169
+ <xs:documentation>Number indicating the order in which the transaction types are to be presented to a software user.
170
+ These numbers might not be consecutive. The transaction types are to be shown with the lowest display number first through to the highest shown last</xs:documentation>
171
+ </xs:annotation>
172
+ </xs:element>
173
+ <xs:element name="Transaction-Code" type="xs:positiveInteger">
174
+ <xs:annotation>
175
+ <xs:documentation>Code to be used for Transaction-Type in the lodgement XML</xs:documentation>
176
+ </xs:annotation>
177
+ </xs:element>
178
+ <xs:element name="Transaction-Text" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
179
+ <xs:element name="In-RdSAP" type="xs:boolean">
180
+ <xs:annotation>
181
+ <xs:documentation>If false, transaction type is to be omitted when RdSAP is being used</xs:documentation>
182
+ </xs:annotation>
183
+ </xs:element>
184
+ </xs:sequence>
185
+ </xs:complexType>
186
+ <xs:simpleType name="LanguageCode">
187
+ <xs:restriction base="xs:string">
188
+ <xs:enumeration value="1">
189
+ <xs:annotation>
190
+ <xs:documentation>English</xs:documentation>
191
+ </xs:annotation>
192
+ </xs:enumeration>
193
+ <xs:enumeration value="2">
194
+ <xs:annotation>
195
+ <xs:documentation>Welsh</xs:documentation>
196
+ </xs:annotation>
197
+ </xs:enumeration>
198
+ </xs:restriction>
199
+ </xs:simpleType>
200
+ <xs:simpleType name="UKCountryCode">
201
+ <xs:annotation>
202
+ <xs:documentation>Code which indicates the country within the UK, taken from BS 6879.</xs:documentation>
203
+ </xs:annotation>
204
+ <xs:restriction base="xs:string">
205
+ <xs:enumeration value="EAW">
206
+ <xs:annotation>
207
+ <xs:documentation>England and Wales</xs:documentation>
208
+ </xs:annotation>
209
+ </xs:enumeration>
210
+ <xs:enumeration value="SCT">
211
+ <xs:annotation>
212
+ <xs:documentation>Scotland</xs:documentation>
213
+ </xs:annotation>
214
+ </xs:enumeration>
215
+ <xs:enumeration value="NIR">
216
+ <xs:annotation>
217
+ <xs:documentation>Northern Ireland</xs:documentation>
218
+ </xs:annotation>
219
+ </xs:enumeration>
220
+ </xs:restriction>
221
+ </xs:simpleType>
222
+ <xs:element name="Sentence" type="Sentence"/>
223
+ <xs:complexType name="Sentence">
224
+ <xs:annotation>
225
+ <xs:documentation>String value with a language code for natural-language text.</xs:documentation>
226
+ </xs:annotation>
227
+ <xs:simpleContent>
228
+ <xs:extension base="xs:string">
229
+ <xs:attribute name="language" type="LanguageCode" use="required">
230
+ <xs:annotation>
231
+ <xs:documentation>Identifies the language that the sentence is recorded in.</xs:documentation>
232
+ </xs:annotation>
233
+ </xs:attribute>
234
+ </xs:extension>
235
+ </xs:simpleContent>
236
+ </xs:complexType>
237
+ <xs:simpleType name="EnergyRatingType">
238
+ <xs:restriction base="xs:integer">
239
+ <xs:minInclusive value="0"/>
240
+ </xs:restriction>
241
+ </xs:simpleType>
242
+ <xs:complexType name="Previous-EPC-Reason-Code">
243
+ <xs:annotation>
244
+ <xs:documentation>List of possible previous EPC reason codes for EPCs. The code indicates the reason for updating an EPC</xs:documentation>
245
+ </xs:annotation>
246
+ <xs:sequence>
247
+ <xs:element name="Display-Order" type="xs:positiveInteger" minOccurs="1" maxOccurs="1">
248
+ <xs:annotation>
249
+ <xs:documentation>Number indicating the order in which the previous EPC reason codes are to be presented to a software user.
250
+ These numbers might not be consecutive. The previous EPC reason codes are to be shown with the lowest display number first through to the highest shown last</xs:documentation>
251
+ </xs:annotation>
252
+ </xs:element>
253
+ <xs:element name="Reason-Code" type="xs:positiveInteger" minOccurs="1" maxOccurs="1">
254
+ <xs:annotation>
255
+ <xs:documentation>Code to be used for Previous-EPC-Reason-Code in the lodgement XML</xs:documentation>
256
+ </xs:annotation>
257
+ </xs:element>
258
+ <xs:element name="Reason-Text" type="xs:string" minOccurs="1" maxOccurs="1"></xs:element>
259
+ </xs:sequence>
260
+ </xs:complexType>
261
+ </xs:schema>