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: UBL Code Data Types



Relatively new to UBL. A question. Was there any particular reason for the
list of attributes for the CC Data Types "MeasureType" and "QuantityType"
not having a similar attribute structure to that of "CodeType"?.  To my way
of thinking units of measure and quantity types are all basically codes and
depending on their implementation could be sourced from different code
maintenance agencies, with different versions, etc, etc. As a consequence
possibly they should have the same attribute structure (in addition to the
code unit value) as "CodeType"???

Below is an extract from the V1.0 UBL CC Types schema.     

<xsd:complexType name="CodeType">

   <xsd:simpleContent>

      <xsd:extension base="xsd:normalizedString">

         <xsd:attribute name="codeListID" type="xsd:normalizedString"
use="optional"/>                      
         <xsd:attribute name="codeListAgencyID" type="xsd:normalizedString"
use="optional"/>                
         <xsd:attribute name="codeListAgencyName" type="xsd:string"
use="optional"/>                        
         <xsd:attribute name="codeListName" type="xsd:string"
use="optional"/>                              
         <xsd:attribute name="codeListVersionID" type="xsd:normalizedString"
use="optional"/>               
         <xsd:attribute name="name" type="xsd:string" use="optional"/>

         <xsd:attribute name="languageID" type="xsd:language"
use="optional"/>                              
         <xsd:attribute name="codeListURI" type="xsd:anyURI"
use="optional"/>                               
         <xsd:attribute name="codeListSchemeURI" type="xsd:anyURI"
use="optional"/>                         
      </xsd:extension>

   </xsd:simpleContent>

</xsd:complexType>

 

<xsd:complexType name="MeasureType">

   <xsd:simpleContent>

      <xsd:extension base="xsd:decimal">

         <xsd:attribute name="measureUnitCode" type="xsd:normalizedString"
use="optional"/>                 
         <xsd:attribute name="measureUnitCodeListVersionID"
type="xsd:normalizedString" use="optional"/>    
      </xsd:extension>

   </xsd:simpleContent>

</xsd:complexType>

 

<xsd:complexType name="QuantityType">

   <xsd:simpleContent>

      <xsd:extension base="xsd:decimal">

         <xsd:attribute name="quantityUnitCode" type="xsd:normalizedString"
use="optional"/>                
         <xsd:attribute name="quantityUnitCodeListID"
type="xsd:normalizedString" use="optional"/>          
         <xsd:attribute name="quantityUnitCodeListAgencyID"
type="xsd:normalizedString" use="optional"/>    
         <xsd:attribute name="quantityUnitCodeListAgencyName"
type="xsd:string" use="optional"/>            
      </xsd:extension>

   </xsd:simpleContent>

</xsd:complexType>

 

Thanks in advance for any clarification.

Regards

--- David Dobbing, Data Logistics, ddobbing@attglobal.net





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