Mandatory use of designated prefixes #402
-
Hello all, I came across the question, if the defined namespace prefixes (ram, qdt, udt,...) must be used in each Instance of an Invoice when using the CII Syntax. My validations against the schematron are all succesfull, even after replacing the ram-prefix with an lll-prefix. Taking a look at XML Naming and Design Rules I understood that there should be fixed 3 letter prefixes for each data package which are to be used during schema design. The question arose, as we came across an instance where ram:ID was written as <ID xmlns="urn:un:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100>. As this notation is missing the prefix, we were not sure about its conformity. To summarize, the question is: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
Hi @MatthiasHainz-ceg , the usage of specific XML prefixes is not mandatory in the context of EN16931 invoices. |
Beta Was this translation helpful? Give feedback.
-
Hi @MatthiasHainz-ceg and @phax, What Philip writes here is not entirely true. Although XML itself allows different representation of namespaces, the CrossIndustryInvoice does not(!). CEN/TS 16931-2 states that CrossIndustryInvoice is one of the allowed syntaxes. One important requirement is that CrossIndustryInvoice is an international standard. And the standard follows a set of rules. It is true, that EN16931 is just semantics itself and neither the syntax list (CEN/TS 16931-2) nor the syntax bindings (CEN/TS 16931-3-*) add any additional constraints. As a result the rules of the international standards UBL and CII must be followed. For CrossIndustryInvoice D16B the XMLNamingAndDesignRulesV2.1.0.pdf is defining the standard. In Cahpter 7.1 it clearly states that the prefixes rsm, ram, qdt and udt MUST be used. It is mandatory. The current version D23A is based on https://unece.org/sites/default/files/2023-10/XMLNamingAndDesignRulesV2.1.1.pdf which has the same set of rules in the same chapter. It forbids to use the long namespace representation. As a result the answer must be Yes, usage of namespace prefixes using CII is mandatory in the context of EN16931. Br, |
Beta Was this translation helpful? Give feedback.
Hi @MatthiasHainz-ceg , the usage of specific XML prefixes is not mandatory in the context of EN16931 invoices.
The XML prefix is only a shortcut to represent long namespace URIs in serialized versions of XML.
Please see https://www.w3.org/TR/xml-names/ for the official specification.