Hi Thomas
From your screen dump it’s not clear to me why you’re getting a validation error, so responding in the ubl-dev mailing list in case someone here can help further. I tried to recreate your example (attached)
and it validates without errors using the UBL 2.3 schemas here:
http://docs.oasis-open.org/ubl/os-UBL-2.3/xsd/. Is it possible that you could have mixed different UBL XSD versions in your validation environment?
I don’t think the UBLVersionID is related to the error you get. It’s just an information item that can be used to provide context to the recipient of the document.
Best regards,
Kenneth
From:
Thomas Andersen | ClearView Trade <ta@clearviewtrade.com>
Date: Thursday, October 5, 2023 at 8:36 AM
To: Kenneth Bengtsson <kbengtsson@efact.pe>, georg@midran.is <georg@midran.is>, ubl-comment@lists.oasis-open.org <ubl-comment@lists.oasis-open.org>
Subject: RE: [ubl-comment] Schema designated namespace update
Hi,
Thank you for the response.
Do you have an explanation as to why the UBL-Order-2.3.xsd is throwing validation errors with UBLVersionID set to 2.3, for elements that should be allowed?
/Thomas
From: Kenneth Bengtsson <kbengtsson@efact.pe>
Sent: Wednesday, 4 October 2023 17.33
To: georg@midran.is; Thomas Andersen | ClearView Trade <ta@clearviewtrade.com>; ubl-comment@lists.oasis-open.org
Subject: Re: [ubl-comment] Schema designated namespace update
Hi Georg
Thank you for your question. UBL is designed so that minor revisions maintain backwards compatibility within each major revision, i.e., a UBL instance created using UBL 2.1 is automatically also compatible
with systems using UBL 2.2, UBL 2.3, etc. Consequently, namespace URI strings only contain information about the major UBL version and does not change between minor versions.
All UBL documents have a cbc:UBLVersionID element that you can use to provide further versioning context if needed. Using a user-defined Customization ID can have the same function.
Hope this helps.
Best regards,
Kenneth
Hi Tomas,
We will take a look at this and get back to you.
Kveðja,
Georg
----------------------------------
Midran ehf., Georg Birgisson
Tel: (354) 544 4800, Mobile: (354) 898 0850,
georg@midran.is
----------------------------------
Hello,
When using the UBL 2.3, we are still receiving errors when validating xml files, due to the fact that the designated namespace for the schemas are still pointing to UBL-2 and not UBL-2.3.
Please update said namespace to represent the latest UBL release.
/Thomas
|