Hey,
Last week I noticed a small inconsistency concerning the ZUGFeRD validator. Here is the test file:
factur-x-anon.xml.pdf
The e‑invoice in question is a ZUGFeRD invoice in EN16931 format. However, it contains the field “Name” (BT‑X‑2). This field is only expected in the extended format. The validator returns the following error:
schema validation fails:org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 15; cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\":Name}' gefunden. '{\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\":TypeCode}' wird erwartet.
In the specification I came across BR CII‑SR‑013, which is exactly intended for this case. There are also references to this rule in the MustangProject validator resources. mustangproject/validator/src/main/resources/xslt/en16931schematron/EN16931-CII-validation.xslt at master · ZUGFeRD/mustangproject · GitHub
Why doesn’t the rule fire, and instead the error is reported?
Hey,
Last week I noticed a small inconsistency concerning the ZUGFeRD validator. Here is the test file:
factur-x-anon.xml.pdf
The e‑invoice in question is a ZUGFeRD invoice in EN16931 format. However, it contains the field “Name” (BT‑X‑2). This field is only expected in the extended format. The validator returns the following error:
schema validation fails:org.xml.sax.SAXParseException; lineNumber: 15; columnNumber: 15; cvc-complex-type.2.4.a: Ungültiger Content wurde beginnend mit Element '{\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\":Name}' gefunden. '{\"urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100\":TypeCode}' wird erwartet.In the specification I came across BR CII‑SR‑013, which is exactly intended for this case. There are also references to this rule in the MustangProject validator resources. mustangproject/validator/src/main/resources/xslt/en16931schematron/EN16931-CII-validation.xslt at master · ZUGFeRD/mustangproject · GitHub
Why doesn’t the rule fire, and instead the error is reported?