OASIS Universal Business Language (UBL) TC

 View Only
  • 1.  Sample code lists for UBL 2.5

    Posted 04-27-2025 16:06
    Fellow UBL committee members,

    I have downloaded the latest UN/CEFACT code list schemas and
    discovered that the schema documentation has been separated from the
    schema enumerations in XSD.

    For example, this is an excerpt from the distributed XSD file for the
    Allowance Charge Reason Code:

    CrossIndustryInvoice_100pD23B_urn_un_unece_uncefact_codelist_standard_UNECE_AllowanceChargeReasonCode_D23A.xsd


    <xsd:schema></xsd:schema>
    xmlns:clm64465AllowanceChargeReasonCode="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    elementFormDefault="qualified"
    version="4.4">
    <xsd:simpletype name="AllowanceChargeReasonCodeContentType">
    <xsd:restriction base="xsd:token">
    <xsd:enumeration value="1"></xsd:enumeration>
    <xsd:enumeration value="2"></xsd:enumeration>
    <xsd:enumeration value="3"></xsd:enumeration>
    <xsd:enumeration value="4"></xsd:enumeration>
    <xsd:enumeration value="5"></xsd:enumeration>
    <xsd:enumeration value="6"></xsd:enumeration>
    <xsd:enumeration value="7"></xsd:enumeration>
    <xsd:enumeration value="8"></xsd:enumeration>
    <xsd:enumeration value="9"></xsd:enumeration>
    <xsd:enumeration value="10"></xsd:enumeration>
    <xsd:enumeration value="11"></xsd:enumeration>
    <xsd:enumeration value="12"></xsd:enumeration>
    ...
    <xsd:enumeration value="98"></xsd:enumeration>
    <xsd:enumeration value="99"></xsd:enumeration>
    <xsd:enumeration value="100"></xsd:enumeration>
    <xsd:enumeration value="101"></xsd:enumeration>
    <xsd:enumeration value="102"></xsd:enumeration>
    <xsd:enumeration value="103"></xsd:enumeration>
    <xsd:enumeration value="104"></xsd:enumeration>
    <xsd:enumeration value="ZZZ"></xsd:enumeration>
    </xsd:restriction>
    </xsd:simpletype>



    In the past I was able to distill from the XSD the complete columnar
    information needed for the sample genericode files. This included the
    associated semantics for each of the coded values.

    While the updated schemas are sufficient for programmatic purposes,
    no longer are they useful for the distillation of all of the
    information we have used in the past.

    Since the code lists found in the UBL distribution are illustrative
    only, I propose we (I!) abandon trying to update the UBL 2.4 code
    lists to the most recent versions from UN/ECE, and just reuse the UBL
    2.4 code lists in UBL 2.5.

    If agreed, I will review the documentation of code lists and revise
    it accordingly.

    Thank you for your comments and suggestions.

    . . . . . . Ken

    --
    Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/o/ |
    Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
    Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) |
    Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |


  • 2.  RE: Sample code lists for UBL 2.5

    Posted 04-27-2025 16:14
    I note that the new OASIS mail system has failed to escape my XSD
    angle brackets. If I look under "Show original" in my Gmail, I can
    see the code.

    Here is an attempt to escape the angle brackets for mailers to reveal
    the message content:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema
    xmlns:clm64465AllowanceChargeReasonCode="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    elementFormDefault="qualified"
    version="4.4">
    <xsd:simpleType name="AllowanceChargeReasonCodeContentType">
    <xsd:restriction base="xsd:token">
    <xsd:enumeration value="1"/>
    <xsd:enumeration value="2"/>
    <xsd:enumeration value="3"/>
    <xsd:enumeration value="4"/>
    <xsd:enumeration value="5"/>
    <xsd:enumeration value="6"/>
    <xsd:enumeration value="7"/>
    <xsd:enumeration value="8"/>
    <xsd:enumeration value="9"/>
    <xsd:enumeration value="10"/>
    <xsd:enumeration value="11"/>
    <xsd:enumeration value="12"/>
    ...
    <xsd:enumeration value="98"/>
    <xsd:enumeration value="99"/>
    <xsd:enumeration value="100"/>
    <xsd:enumeration value="101"/>
    <xsd:enumeration value="102"/>
    <xsd:enumeration value="103"/>
    <xsd:enumeration value="104"/>
    <xsd:enumeration value="ZZZ"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>


    At 27/04/2025 20:05 +0000, Ken Holman via OASIS wrote:
    >Fellow UBL committee members, I have downloaded the latest UN/CEFACT
    >code list schemas and discovered that the schema documentation has
    >been... -posted to the "OASIS Universal Business Language (UBL) TC" community
    >
    >
    ><https: groups.oasis-open.org communities community-home digestviewer?communitykey=556949c8-dac8-40e6-bb16-018dc7ce54d6>OASIS
    >Universal Business Language (UBL) TC
    >
    >
    >
    ><mailto:oasis-ubl@connectedcommunity.org>Post New Message
    ><https: groups.oasis-open.org discussion sample-code-lists-for-ubl-25#bmb489c5f8-c670-41ef-a772-06ec556c875e>Sample
    >code lists for UBL 2.5
    ><mailto:oasis_ubl_b489c5f8-c670-41ef-a772-06ec556c875e@connectedcommunity.org?subject=re:></mailto:oasis_ubl_b489c5f8-c670-41ef-a772-06ec556c875e@connectedcommunity.org?subject=re:>
    >Sample code lists for UBL 2.5>Reply to Group
    ><mailto:gkholman@cranesoftwrights.com?subject=re: sample code lists></mailto:gkholman@cranesoftwrights.com?subject=re:>
    >for UBL 2.5>Reply to Sender via
    >Email<https: groups.oasis-open.org profile?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9>
    >
    >Apr 27, 2025 4:06 PM
    ><https: groups.oasis-open.org profile?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9>Ken
    >Holman
    >Fellow UBL committee members,
    >
    >I have downloaded the latest UN/CEFACT code list schemas and
    >discovered that the schema documentation has been separated from the
    >schema enumerations in XSD.
    >
    >For example, this is an excerpt from the distributed XSD file for the
    >Allowance Charge Reason Code:
    >
    >CrossIndustryInvoice_100pD23B_urn_un_unece_uncefact_codelist_standard_UNECE_AllowanceChargeReasonCode_D23A.xsd
    >
    >
    >
    >xmlns:clm64465AllowanceChargeReasonCode="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    >xmlns:xsd="<http: www.w3.org 2001 xmlschema>www.w3.org/2001/XMLSchema"
    >targetNamespace="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    >elementFormDefault="qualified"
    >version="4.4">
    >
    >
    >
    >
    >In the past I was able to distill from the XSD the complete columnar
    >information needed for the sample genericode files. This included the
    >associated semantics for each of the coded values.
    >
    >While the updated schemas are sufficient for programmatic purposes,
    >no longer are they useful for the distillation of all of the
    >information we have used in the past.
    >
    >Since the code lists found in the UBL distribution are illustrative
    >only, I propose we (I!) abandon trying to update the UBL 2.4 code
    >lists to the most recent versions from UN/ECE, and just reuse the UBL
    >2.4 code lists in UBL 2.5.
    >
    >If agreed, I will review the documentation of code lists and revise
    >it accordingly.
    >
    >Thank you for your comments and suggestions.
    >
    >. . . . . . Ken
    >
    >--
    >Contact info, blog, articles, etc.
    ><http: www.cranesoftwrights.com o>www.CraneSoftwrights.com/o |
    >Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
    >Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) |
    >Essays (UBL, XML, etc.)
    ><http: www.linkedin.com today author gkholman>www.linkedin.com/today/author/gkholman
    >|
    >
    ><mailto:oasis_ubl_b489c5f8-c670-41ef-a772-06ec556c875e@connectedcommunity.org?subject=re:></mailto:oasis_ubl_b489c5f8-c670-41ef-a772-06ec556c875e@connectedcommunity.org?subject=re:>
    >Sample code lists for UBL 2.5>Reply to Group via
    >Email <mailto:gkholman@cranesoftwrights.com?subject=re: sample></mailto:gkholman@cranesoftwrights.com?subject=re:>
    >code lists for UBL 2.5>Reply to Sender via
    >Email
    ><https: groups.oasis-open.org discussion sample-code-lists-for-ubl-25#bmb489c5f8-c670-41ef-a772-06ec556c875e>View
    >Thread
    ><https: groups.oasis-open.org:443 discussion sample-code-lists-for-ubl-25?messagekey=b489c5f8-c670-41ef-a772-06ec556c875e&cmd=rate&cmdarg=add#bmb489c5f8-c670-41ef-a772-06ec556c875e>Recommend
    ><https: groups.oasis-open.org communities all-discussions forwardmessages?messagekey=b489c5f8-c670-41ef-a772-06ec556c875e&ListKey=eb1069e3-ba66-4211-baba-018dce24c451>Forward
    >
    >
    >You are subscribed to "OASIS Universal Business Language (UBL) TC"
    >as gkholman@cranesoftwrights.com. To change your subscriptions, go
    >to
    ><http: oasis.connectedcommunity.org preferences?section=Subscriptions>My
    >Subscriptions. To unsubscribe from this community discussion, go to
    ><https: oasis.connectedcommunity.org higherlogic egroups unsubscribe.aspx?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9&sKey=KeyRemoved&GroupKey=eb1069e3-ba66-4211-baba-018dce24c451>Unsubscribe.
    >


    --
    Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/o/ |
    Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
    Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) |
    Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |




  • 3.  RE: Sample code lists for UBL 2.5

    Posted 04-27-2025 16:32
    I dug up the corresponding file we used for UBL 2.3, and it reads as
    follows, complete with the information needed for the genericode
    columns ... you can see that the most recent files I found for UBL
    2.5 are unusable for our purpose:

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:clm64465AllowanceChargeReasonCode="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D19A"
    xmlns:ccts="urn:un:unece:uncefact:documentation:standard:CoreComponentsTechnicalSpecification:2"
    targetNamespace="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D19A"
    elementFormDefault="qualified" attributeFormDefault="unqualified"
    version="2.4">
    <!--
    ======================================================================= -->
    <!-- ===== Element
    Declarations ===== -->
    <!--
    ======================================================================= -->
    <!-- ===== Root
    Element ===== -->
    <!--
    ======================================================================= -->
    <xsd:element name="AllowanceChargeReasonCode"
    type="clm64465AllowanceChargeReasonCode:AllowanceChargeReasonCodeContentType"/>
    <!-- ================================================================== -->
    <!-- ===== Type Definitions ===== -->
    <!-- ================================================================== -->
    <!-- ===== Type Definition: AllowanceChargeReasonCodeContentType ===== -->
    <!-- ================================================================== -->
    <xsd:simpleType name="AllowanceChargeReasonCodeContentType">
    <xsd:restriction base="xsd:token">
    <xsd:enumeration value="1">
    <xsd:annotation>
    <xsd:documentation xml:lang="en">
    <ccts:Name>Agreed settlement</ccts:Name>
    <ccts:Description>An adjustment made based on an
    agreement between partners.</ccts:Description>
    </xsd:documentation>
    </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="2">
    <xsd:annotation>
    <xsd:documentation xml:lang="en">
    <ccts:Name>Below specification goods</ccts:Name>
    <ccts:Description>Goods of inferior
    quality.</ccts:Description>
    </xsd:documentation>
    </xsd:annotation>
    </xsd:enumeration>
    <xsd:enumeration value="3">
    <xsd:annotation>
    <xsd:documentation xml:lang="en">
    <ccts:Name>Damaged goods</ccts:Name>
    <ccts:Description>An adjustment due to the damage of
    goods.</ccts:Description>
    </xsd:documentation>
    </xsd:annotation>
    </xsd:enumeration>
    ....

    At 27/04/2025 20:14 +0000, Ken Holman via OASIS wrote:
    >I note that the new OASIS mail system has failed to escape my XSD
    >angle brackets. If I look under "Show original" in my Gmail, I can see the...
    >
    >
    ><https: groups.oasis-open.org communities community-home digestviewer?communitykey=556949c8-dac8-40e6-bb16-018dc7ce54d6>OASIS
    >Universal Business Language (UBL) TC
    >
    >
    >
    ><mailto:oasis-ubl@connectedcommunity.org>Post New Message
    ><https: groups.oasis-open.org discussion sample-code-lists-for-ubl-25#bm08ae5200-c093-469f-94df-fd772c481996>Re:
    >Sample code lists for UBL 2.5
    ><mailto:oasis_ubl_08ae5200-c093-469f-94df-fd772c481996@connectedcommunity.org?subject=re:></mailto:oasis_ubl_08ae5200-c093-469f-94df-fd772c481996@connectedcommunity.org?subject=re:>
    >Sample code lists for UBL 2.5>Reply to Group
    ><mailto:gkholman@cranesoftwrights.com?subject=re: sample code lists></mailto:gkholman@cranesoftwrights.com?subject=re:>
    >for UBL 2.5>Reply to Sender via
    >Email<https: groups.oasis-open.org profile?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9>
    >
    >Apr 27, 2025 4:14 PM
    ><https: groups.oasis-open.org profile?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9>Ken
    >Holman
    >I note that the new OASIS mail system has failed to escape my XSD
    >angle brackets. If I look under "Show original" in my Gmail, I can
    >see the code.
    >
    >Here is an attempt to escape the angle brackets for mailers to reveal
    >the message content:
    >
    >
    >< />
    >xmlns:clm64465AllowanceChargeReasonCode="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    >xmlns:xsd="<http: www.w3.org 2001 xmlschema>www.w3.org/2001/XMLSchema"
    >targetNamespace="urn:un:unece:uncefact:codelist:standard:UNECE:AllowanceChargeReasonCode:D23A"
    >elementFormDefault="qualified"
    >version="4.4">
    ><xsd:simpletype name="AllowanceChargeReasonCodeContentType">
    ><xsd:restriction base="xsd:token">
    ><xsd:enumeration value="1"></xsd:enumeration>
    ><xsd:enumeration value="2"></xsd:enumeration>
    ><xsd:enumeration value="3"></xsd:enumeration>
    ><xsd:enumeration value="4"></xsd:enumeration>
    ><xsd:enumeration value="5"></xsd:enumeration>
    ><xsd:enumeration value="6"></xsd:enumeration>
    ><xsd:enumeration value="7"></xsd:enumeration>
    ><xsd:enumeration value="8"></xsd:enumeration>
    ><xsd:enumeration value="9"></xsd:enumeration>
    ><xsd:enumeration value="10"></xsd:enumeration>
    ><xsd:enumeration value="11"></xsd:enumeration>
    ><xsd:enumeration value="12"></xsd:enumeration>
    >...
    ><xsd:enumeration value="98"></xsd:enumeration>
    ><xsd:enumeration value="99"></xsd:enumeration>
    ><xsd:enumeration value="100"></xsd:enumeration>
    ><xsd:enumeration value="101"></xsd:enumeration>
    ><xsd:enumeration value="102"></xsd:enumeration>
    ><xsd:enumeration value="103"></xsd:enumeration>
    ><xsd:enumeration value="104"></xsd:enumeration>
    ><xsd:enumeration value="ZZZ"></xsd:enumeration>
    ></xsd:restriction>
    ></xsd:simpletype>
    >
    >
    >
    >At 27/04/2025 20:05 +0000, Ken Holman via OASIS wrote:
    > >Fellow UBL committee members, I have downloaded the latest UN/CEFACT
    > >code list schemas and discovered that the schema documentation has
    > >been... -posted to the "OASIS Universal Business Language (UBL)
    > TC" community
    > >
    > >
    > >
    >
    ><mailto:oasis_ubl_08ae5200-c093-469f-94df-fd772c481996@connectedcommunity.org?subject=re:></mailto:oasis_ubl_08ae5200-c093-469f-94df-fd772c481996@connectedcommunity.org?subject=re:>
    >Sample code lists for UBL 2.5>Reply to Group via
    >Email <mailto:gkholman@cranesoftwrights.com?subject=re: sample></mailto:gkholman@cranesoftwrights.com?subject=re:>
    >code lists for UBL 2.5>Reply to Sender via
    >Email
    ><https: groups.oasis-open.org discussion sample-code-lists-for-ubl-25#bm08ae5200-c093-469f-94df-fd772c481996>View
    >Thread
    ><https: groups.oasis-open.org:443 discussion sample-code-lists-for-ubl-25?messagekey=08ae5200-c093-469f-94df-fd772c481996&cmd=rate&cmdarg=add#bm08ae5200-c093-469f-94df-fd772c481996>Recommend
    ><https: groups.oasis-open.org communities all-discussions forwardmessages?messagekey=08ae5200-c093-469f-94df-fd772c481996&ListKey=eb1069e3-ba66-4211-baba-018dce24c451>Forward
    >
    >
    >You are subscribed to "OASIS Universal Business Language (UBL) TC"
    >as gkholman@cranesoftwrights.com. To change your subscriptions, go
    >to
    ><http: oasis.connectedcommunity.org preferences?section=Subscriptions>My
    >Subscriptions. To unsubscribe from this community discussion, go to
    ><https: oasis.connectedcommunity.org higherlogic egroups unsubscribe.aspx?userkey=7da22078-5dec-4d42-81f5-018dc8857ee9&sKey=KeyRemoved&GroupKey=eb1069e3-ba66-4211-baba-018dce24c451>Unsubscribe.
    >


    --
    Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/o/ |
    Check our site for free XML, XSLT, XSL-FO and UBL developer resources |
    Streaming hands-on XSLT/XPath 2 training class @US$125 (5 hours free) |
    Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |