OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-dev message

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


Subject: Re: [ubl-dev] Mapping from Genericode <Identification> tags to UBL Code attributes?


Forgive me, of course it was August 2005 and not August 2015 that the idea of CVA was born at the UBL plenary in Ottawa. So much time has gone by!

. . . . . Ken

At 2018-05-23 09:03 -0400, G. Ken Holman wrote:
At 2018-05-23 11:00 +0100, David Goodenough wrote:
Is there a document anywhere that maps the items in the Genericode <Identification> section to the UBL Code attributes.

Yes, it is explicit in the Context/Value Association (CVA) file.

For UBL 2.1 this file is found in this directory:

  http://docs.oasis-open.org/ubl/os-UBL-2.1/cva/

Looking at the <InstanceMetadataSets> element starting on line 115, there is a formal declaration of <InstanceMetadataSet> for each of the data types that maps the XPath of the metadata information to the XPath of the genericode identification.

The new UBL 2.2 releases have the same subdirectory (as did UBL 2.0).

The UBL code attributes being:-

ListId,ListAgencyId,ListAgencyName,ListName,ListVersionId,Name,LanguageId,ListURI,ListSchemaURI

and the Genericode tags being:-

ShortName, LongName (two form, second being ListId), Version, CanonicalUri, CanonicalVersionURI, LocationUri, AlternativeFormatLocationUrl, Agency (LongName and Identifier).

They are all there laid out for the processes to act on in order to create the data type qualification XSLT found in:

  http://docs.oasis-open.org/ubl/os-UBL-2.1/val/

Was a formal mapping done when UBL moved to using Genericode?

Every release has the formal mapping in the CVA file (and it happens this mapping has not changed in any of the UBL releases).

I designed the CVA vocabulary so that any project can use genericode and explicitly declare, using XPath, all of the required associations. I did not want to hardwire anything.

Acknowledgements go to Stephen Green who, during the August 2015 UBL plenary meeting, pushed me to follow through to implementation my observation that XPath could be used to map associations dynamically to synthesize the required value checking stylesheet for 2-pass validation. The CVA vocabulary came out of that prompting.

Also putting all of these values into every code in a UBL document seems rather redundant, is it considered valid to put just the ListId (possibly also the AgencyID to ensure uniqueness) in the subsequent instances of the same code list?

YMMV ... each community decides what metadata is important in their environment.

I hope this is helpful.

. . . . . . Ken


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



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