OASIS Universal Business Language (UBL) TC

 View Only
  • 1.  Re: [ubl] Code lists

    Posted 10-03-2005 12:29
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    ubl message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: Re: [ubl] Code lists


    Hi Ken
    
    Yes; apologies that the rules stated did only apply to elements.
    Regarding attributes I think your rule is correct - the datatype name
    would end '...CodeContentType'.
    
    All the best
    
    Steve
    
    >>> "G. Ken Holman" <gkholman@CraneSoftwrights.com> 30/09/05 19:20:12 >>>
    I've put more time into these files today and I'm wondering about a 
    curious absence of attributes in my generated reports.
    
    At 2005-09-19 20:22 -0400, I wrote:
    >At 2005-09-19 12:56 +0100, Stephen Green wrote:
    >>Hi. The same would apply to datatypes but for '...Code'
    >>read '...CodeType'. So
    >>
    >>The UBL naming rules mean that
    >>1. all Code datatype elements will have 'CodeType' at the end of the
    >>datatype name.
    >>2. just a Text datatype element could have 'CodeType' at the end of the
    >>datatype name.
    >>3. any datatype could have 'Code' in the middle of the element name.
    >>
    >>But in 1.0 and so far in 2.0 only Code datatypes have 'CodeType'
    >>in the datatype name.
    >
    >Then I grabbed all of the code list data types from the XPath files using:
    >
    >match="@type[contains(.,'CodeType') and substring-after(.,'CodeType')='']"
    >
    >That did reduce the file sizes a touch.
    
    Based on my test described above it also threw out all 
    amountCurrencyID attributes of type cur:CurrencyCodeContentType ... 
    shouldn't I be including this in my code lists contexts?
    
    And, it would seem that that is the only attribute in all of UBL 
    where "Code" is in the data type name.
    
    I'll proceed including this because I would think trading partners 
    would want to limit this attribute value:
    
      match="@type[( contains(.,'CodeType') and substring-after(.,'CodeType')='' )
                or ( contains(.,'CodeContentType') and
                                         substring-after(.,'CodeContentType')='' 
    )]"
    
    Does this make sense, Steve?
    
    . . . . . . . Ken
    
    --
    World-wide on-site corporate, govt. & user group XML/XSL training.
    G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com 
    Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/o/ 
    Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
    Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/o/bc 
    Legal business disclaimers:  http://www.CraneSoftwrights.com/legal 
    
    
    ---------------------------------------------------------------------
    To unsubscribe from this mail list, you must leave the OASIS TC that
    generates this mail.  You may a link to this group and all your TCs in OASIS
    at:
    https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php 
    
    
    


    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]