Skip to content

UBL Extension with XML attachment and its report #171

@Boarschti42

Description

@Boarschti42

Hello,

my issue is the following using version 1.6.0 of validator and Schema 3.0.2 (latest XRechnung with latest available config).

I create a valid UBL invoice without extension. I validate it, i goes through. no errors.
now i use same invoice, attach an XML with mimetype application/xml and set type to extension ( urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0)
when i now validate, following is the result:

...
Erkannter Dokumenttyp: EN16931 XRechnung Extension (UBL Invoice)

Konformitätsprüfung: Das geprüfte Dokument enthält 1 Fehler / 0 Warnungen. Es ist nicht konform zu den formalen Vorgaben.

Prüfschritt Fehler Warnungen Informationen
XML Schema for UBL 2.1 Invoice (val-xsd) 0 0 0
Schematron rules for EN16931 (UBL) (val-sch.1) 1 0 0
Schematron rules for Invoice - XRechnung (UBL) (val-sch.2) 0 0 0
(val-xml) 0 0 0
Pos Code Adj. Grad Text
val-sch.1.1 BR-CL-24 information [BR-CL-24]-For Mime code in attribute use MIMEMediaType.
Pfad: /ubl:Invoice/cac:AdditionalDocumentReference[1]/cac:Attachment[1]/cbc:EmbeddedDocumentBinaryObject[1]

Bewertung: Es wird empfohlen das Dokument anzunehmen und zu verarbeiten, da die vorhandenen Fehler derzeit toleriert werden.


First, it says reject cause of error, than it accepts. But the issue here: in Code, this BR-CL-24 (which is rewritten in schematron somewhere) in stated as errors in code. The change to information happens only for this visual report. also, the Schematron rules are with state error, not information.

Can you fix this issue please?

Thank you

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions