Next in thread → Next in month →

Re: [ubl] Code lists

From
Ken Holman
Date
2005-09-30T20:42:00+00:00
ID
Thread
Re: [ubl] Code lists
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




From: "G. Ken Holman" <>
To: <>
Date: Fri, 30 Sep 2005 14:20:12 -0400






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:
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
Next in thread → Next in month →