-
Notifications
You must be signed in to change notification settings - Fork 14
/
scenarios.xml
326 lines (310 loc) · 14 KB
/
scenarios.xml
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is the source file for creating scenarios.xml
-
- DO NOT USE DIRECTLY
-->
<scenarios xmlns="http://www.xoev.de/de/validator/framework/1/scenarios"
frameworkVersion="1.0.0">
<name>Validator Configuration XRechnung @xrechnung.version@</name>
<author>Coordination Office for IT Standards (KoSIT)</author>
<date>@build.date@</date>
<description>
<p>Checks whether XML Documents conform to XRechnung specification
@xrechnung.version@
(https://www.xoev.de/die_standards/xrechnung-14741).</p>
<p>It uses CEN Schematron rules of @cen.spec.id@
in version @cen.rules.version@ from @build.date@
(https://github.com/CenPC434/validation/releases).</p>
<p>It uses Schematron Rules version @xrechnung.rules.version.full@ for XRechnung specification version
@xrechnung.version@
(@xrechnung.download.url@). </p>
</description>
<!-- XRECHNUNG specific scenarios -->
<scenario>
<name>EN16931 XRechnung (UBL Invoice)</name>
<description>
<p>Validates UBL Invoice in version @ubl.version@</p>
<p>Uses UBL Invoice @ubl.version@ XML Schema,
Schematron rules from EN16931:2017, and XRechnung
@xrechnung.version@ </p>
<p>Download of UBL XML Schema on @build.date@ from
@ubl.download.url@</p>
<p>Download of UBL Schematron rules on @build.date@ from
@cen.download.url.ubl@</p>
<p>Download of XRechnung Schematron rules on @build.date@ from
@xrechnung.download.url@</p>
</description>
<!-- UBL Invoice namespaces -->
<namespace prefix="cbc"
>urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2</namespace>
<namespace prefix="invoice"
>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<!-- or starts-with(cbc:CustomizationID,
'@xrechnung.spec.id@#conformant#urn:xoev-de:kosit:extension:xrechnung_2.0') -->
<match>exists(/invoice:Invoice[ cbc:CustomizationID/text() = '@xrechnung.spec.id@' or cbc:CustomizationID/text() = '@xrechnung.spec.id@#conformant#urn:xoev-de:kosit:extension:xrechnung_2.0']) </match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UBL 2.1 Invoice</name>
<location>resources/ubl/2.1/xsd/maindoc/UBL-Invoice-2.1.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (UBL)</name>
<location>resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl</location>
</resource>
</validateWithSchematron>
<validateWithSchematron>
<resource>
<name>Schematron rules for Invoice - CIUS XRechnung (UBL)</name>
<location>resources/xrechnung/@xrechnung.version@/xsl/XRechnung-UBL-validation-Invoice.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for XRechnung</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
<customLevel level="information">BR-CL-01</customLevel>
<customLevel level="warning">BR-CL-23</customLevel>
<customLevel level="warning">BR-CL-21</customLevel>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<scenario>
<name>EN16931 XRechnung (UBL CreditNote)</name>
<description>
<p>Validates UBL CrediteNote version @ubl.version@</p>
<p>Uses UBL CreditNote @ubl.version@ XML Schema,
Schematron rules from EN16931:2017, and XRechnung
@xrechnung.version@ </p>
<p>Download of UBL XML Schema on @build.date@ from
@ubl.download.url@</p>
<p>Download of UBL Schematron rules on @build.date@ from
@cen.download.url.ubl@</p>
<p>Download of XRechnung Schematron rules on @build.date@ from
@xrechnung.download.url@</p>
</description>
<!-- UBL CrediteNote Namespaces -->
<namespace prefix="cbc"
>urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2</namespace>
<namespace prefix="creditnote"
>urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<match>exists(/creditnote:CreditNote[ cbc:CustomizationID/text() = '@xrechnung.spec.id@'])</match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UBL 2.1 CreditNote</name>
<location>resources/ubl/2.1/xsd/maindoc/UBL-CreditNote-2.1.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (UBL)</name>
<location>resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl</location>
</resource>
</validateWithSchematron>
<validateWithSchematron>
<resource>
<name>Schematron rules for CreditNote - CIUS XRechnung (UBL)</name>
<location>resources/xrechnung/@xrechnung.version@/xsl/XRechnung-UBL-validation-CreditNote.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for XRechnung</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
<customLevel level="information">BR-CL-01</customLevel>
<customLevel level="warning">BR-CL-23</customLevel>
<customLevel level="warning">BR-CL-21</customLevel>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<scenario>
<name>EN16931 XRechnung (CII)</name>
<description>
<p>Validates UN/CEFACT XML (SCRDM - CII uncoupled) version
@cii.version@</p>
<p>Uses UN/CEFACT (SCRDM - CII uncoupled) version
@cii.version@ XML Schema, Schematron rules from EN16931:2017,
and XRechnung Schematron rules version @xrechnung.version@ </p>
<p>Download of CII uncoupled XML Schema on @build.date@ from
@cii.download.url@</p>
<p>Download of CII Schematron rules on @build.date@ from
@cen.download.url.cii@ </p>
<p>Download of XRechnung Schematron rules on @build.date@ from
@xrechnung.download.url@</p>
</description>
<!-- CII namespaces -->
<namespace prefix="rsm"
>urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
<namespace prefix="ram"
>urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<match>exists(/rsm:CrossIndustryInvoice[rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = '@xrechnung.spec.id@'])</match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UN/CEFACT XML (SCRDM - CII
uncoupled)</name>
<location>resources/cii/16b/xsd/CrossIndustryInvoice_100pD16B.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (CII)</name>
<location>resources/cii/16b/xsl/EN16931-CII-validation.xsl</location>
</resource>
</validateWithSchematron>
<validateWithSchematron>
<resource>
<name>Schematron rules for CIUS XRechnung (CII)</name>
<location>resources/xrechnung/@xrechnung.version@/xsl/XRechnung-CII-validation.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for XRechnung</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
<customLevel level="information">BR-CL-01</customLevel>
<customLevel level="warning">BR-CL-23</customLevel>
<customLevel level="warning">BR-CL-21</customLevel>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<!-- Match for general CEN rules validation only: WITHOUT XRECHNUNG rules -->
<scenario>
<name>EN16931 (UBL Invoice)</name>
<description>
<p>Validates UBL Invoice in version @ubl.version@</p>
<p>Uses UBL Invoice @ubl.version@ XML Schema,
Schematron rules from EN16931:2017, and XRechnung
@xrechnung.version@ </p>
<p>Download of UBL XML Schema on @build.date@ from
@ubl.download.url@</p>
<p>Download of UBL Schematron rules on @build.date@ from
@cen.download.url.ubl@</p>
</description>
<!-- UBL Invoice namespaces -->
<namespace prefix="cbc"
>urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2</namespace>
<namespace prefix="invoice"
>urn:oasis:names:specification:ubl:schema:xsd:Invoice-2</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<match>exists(/invoice:Invoice[ cbc:CustomizationID/text() = 'urn:cen.eu:en16931:2017' ])</match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UBL 2.1 Invoice</name>
<location>resources/ubl/2.1/xsd/maindoc/UBL-Invoice-2.1.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (UBL)</name>
<location>resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for EN16931 (UBL Invoice)</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<scenario>
<name>EN16931 (UBL CreditNote)</name>
<description>
<p>Validates UBL CrediteNote version @ubl.version@</p>
<p>Uses UBL CreditNote @ubl.version@ XML Schema,
Schematron rules from EN16931:2017, and XRechnung
@xrechnung.version@ </p>
<p>Download of UBL XML Schema on @build.date@ from
@ubl.download.url@</p>
<p>Download of UBL Schematron rules on @build.date@ from
@cen.download.url.ubl@</p>
</description>
<!-- UBL CrediteNote Namespaces -->
<namespace prefix="cbc"
>urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2</namespace>
<namespace prefix="creditnote"
>urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<match>exists(/creditnote:CreditNote[cbc:CustomizationID/text() = 'urn:cen.eu:en16931:2017'])</match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UBL 2.1 CreditNote</name>
<location>resources/ubl/2.1/xsd/maindoc/UBL-CreditNote-2.1.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (UBL)</name>
<location>resources/ubl/2.1/xsl/EN16931-UBL-validation.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for EN16931 (UBL CreditNote)</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<scenario>
<name>EN16931 (CII)</name>
<description>
<p>Validates UN/CEFACT XML (SCRDM - CII uncoupled) version
@cii.version@</p>
<p>Uses UN/CEFACT (SCRDM - CII uncoupled) version
@cii.version@ XML Schema, Schematron rules from EN16931:2017,
and XRechnung Schematron rules version @xrechnung.version@ </p>
<p>Download of CII uncoupled XML Schema on @build.date@ from
@cii.download.url@</p>
<p>Download of CII Schematron rules on @build.date@ from
@cen.download.url.cii@ </p>
</description>
<!-- CII namespaces -->
<namespace prefix="rsm"
>urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100</namespace>
<namespace prefix="ram"
>urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100</namespace>
<!-- Namespace for acceptMatch XPATH within validator report XML -->
<namespace prefix="rep">http://www.xoev.de/de/validator/varl/1</namespace>
<match>exists(/rsm:CrossIndustryInvoice[ rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID/text() = 'urn:cen.eu:en16931:2017'])</match>
<validateWithXmlSchema>
<resource>
<name>XML Schema for UN/CEFACT XML (SCRDM - CII
uncoupled)</name>
<location>resources/cii/16b/xsd/CrossIndustryInvoice_100pD16B.xsd</location>
</resource>
</validateWithXmlSchema>
<validateWithSchematron>
<resource>
<name>Schematron rules for EN16931 (CII)</name>
<location>resources/cii/16b/xsl/EN16931-CII-validation.xsl</location>
</resource>
</validateWithSchematron>
<createReport>
<resource>
<name>Validation report for EN16931 (CII)</name>
<location>resources/xrechnung-report.xsl</location>
</resource>
</createReport>
<acceptMatch>/rep:report/rep:assessment[1]/rep:accept[1]</acceptMatch>
</scenario>
<!-- In case none of the aboce scenarios matched/were applied -->
<noScenarioReport>
<resource>
<name>Default Report</name>
<location>resources/default-report.xsl</location>
</resource>
</noScenarioReport>
</scenarios>