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

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl message

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


Subject: Re: [ubl] Code Lists (for Atlantic call if possible) was Re:[ubl] NDR Codelist Example


Further to my suggestion yesterday...

>  I suggest we take one UBL 2.0 code list and show:
> a. the spreadsheet entries
> b. the UBL 2.0 schema(s) view
> c. the genericode file for validations
> - and that's it. 
>

I have tried to put together this example (see attached). 

I am OK with the spreadsheet and genericode file (i hope), but someone 
who knows about these things needs to check the qDT schema fragment.  i 
think it needs to restrict the ATG2 uDT definition for CodeType with the 
values shown here but i dont know the syntax to do this. (i just cut and 
paste the ATG2 CodeType and editted it).

If my understanding is correct then i think these examples cover the 
three types of artifact we need for each UBL defined code list. (answer 
yes or no)

-- 
regards
tim mcgrath
phone: +618 93352228  
postal: po box 1289   fremantle    western australia 6160
web: http://www.portcomm.com.au/tmcgrath

JPEG image

   <xsd:complexType name="ChannelCodeType">
      <xsd:annotation>
         <xsd:documentation xml:lang="en">
            <ccts:UniqueID></ccts:UniqueID>
            <ccts:CategoryCode>QDT</ccts:CategoryCode>
            <ccts:DictionaryEntryName>Channel_ Code. Type</ccts:DictionaryEntryName>
            <ccts:VersionID>1</ccts:VersionID>
            <ccts:Definition>The set of possible ways in which communication can be made (eg. Phone, email, etc).</ccts:Definition>
            <ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
            <ccts:PrimitiveType>string</ccts:PrimitiveType>
            <xsd:BuiltinType>normalizedString</xsd:BuiltinType>
         </xsd:documentation>
      </xsd:annotation>
      <xsd:simpleContent>
         <xsd:extension base="xsd:normalizedString">
          <xsd:attribute name="listID" type="xsd:normalizedString" default="UN/ECE 3155" use="optional">
             <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
          <xsd:attribute name="listAgencyID" type="xsd:normalizedString" default="6" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List. Agency. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="listAgencyName" type="xsd:string" default="United Nations Economic Commission for Europe" use="optional">
			    <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List. Agency Name. Text</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="listName" type="xsd:string" default="Communication Address Code Qualifier" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
  	                 <ccts:DictionaryEntryName>Channel_ Code List. Name. Text</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>						
            <xsd:attribute name="listVersionID" type="xsd:normalizedString" default="D03A" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List. Version. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="name" type="xsd:string" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code. Name. Text</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="languageID" type="xsd:language" default="en" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Language. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
			<xsd:attribute name="listURI" type="xsd:anyURI" default="../codelist/gc/ChannelCodeType.gc" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List. Uniform Resource. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
            <xsd:attribute name="listSchemeURI" type="xsd:anyURI" default="urn:oasis:names:specification:ubl:schema:xsd:ChannelCode-1.0" use="optional">
               <xsd:annotation>
                  <xsd:documentation xml:lang="en">
                     <ccts:DictionaryEntryName>Channel_ Code List Scheme. Uniform Resource. Identifier</ccts:DictionaryEntryName>
                  </xsd:documentation>
               </xsd:annotation>
            </xsd:attribute>
         </xsd:extension>
      </xsd:simpleContent>
   </xsd:complexType>
<?xml version="1.0" encoding="UTF-8"?>
<gc:CodeList xmlns:gc="http://genericode.org/2005/ns/CodeList/0.3/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:cl="urn:oasis:names:specification:ubl:schema:xsd:Code-1.0" xsi:schemaLocation="http://genericode.org/2005/ns/CodeList/0.3/ CodeList.xsd">
   <Annotation>
      <AppInfo>
         <cl:codeListID type="xsd:normalizedString" fixed="UN/ECE 3155"/>
         <cl:codeListAgencyID type="xsd:normalizedString" fixed="6"/>
         <cl:codeListAgencyName type="xsd:string" fixed="United Nations Economic Commission for Europe"/>
         <cl:codeListName type="xsd:string" fixed="Communication Address Code Qualifier"/>
         <cl:codeListVersionID type="xsd:normalizedString" fixed="D03A"/>
         <cl:languageID type="xsd:language"/>
         <cl:codeListURI type="xsd:anyURI" fixed="../codelist/gc/ChannelCodeType.gc"/>
         <cl:codeListSchemeURI type="xsd:anyURI" fixed="urn:oasis:names:specification:ubl:schema:xsd:ChannelCode-1.0"/>
      </AppInfo>
   </Annotation>
   <Identification>
      <ShortName>ChannelCode</ShortName>
      <LongName>UN/ECE 3155</LongName>
      <Version>D03A</Version>
      <CanonicalUri>urn:oasis:names:specification:ubl:schema:xsd:ChannelCode</CanonicalUri>
      <CanonicalVersionUri>urn:oasis:names:specification:ubl:schema:xsd:ChannelCode-1.0</CanonicalVersionUri>
   </Identification>
   <ColumnSet>
      <Column Id="code" Use="required">
         <ShortName>Code</ShortName>
         <Data Type="xsd:normalizedString"/>
      </Column>
      <Column Id="name" Use="optional">
         <ShortName>Name</ShortName>
         <Data Type="xsd:string"/>
      </Column>
      <Key Id="codeKey">
         <ShortName>CodeKey</ShortName>
         <ColumnRef Ref="code"/>
      </Key>
   </ColumnSet>
   <SimpleCodeList>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AA</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Circuit switching</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AB</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>SITA</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AC</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>ARINC</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AD</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>AT&amp;T mailbox</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AE</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Peripheral device</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AF</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>U.S. Defense Switched Network</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AG</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>U.S. federal telecommunications system</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AH</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>World Wide Web</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AI</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>International calling country code</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AJ</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Alternate telephone</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AK</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Videotex number</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AL</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Cellular phone</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>International telephone direct line</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AN</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>O.F.T.P. (ODETTE File Transfer Protocol)</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AO</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Uniform Resource Location (URL)</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>AP</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Very High Frequency (VHF) radio telephone</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>CA</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Cable address</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>EI</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>EDI transmission</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>EM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Electronic mail</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>EX</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Extension</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>FT</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>File transfer access method</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>FX</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Telefax</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>GM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>GEIS (General Electric Information Service) mailbox</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>IE</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>IBM information exchange</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>IM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Internal mail</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>MA</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Mail</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>PB</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Postbox number</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>PS</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Packet switching</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>SW</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>S.W.I.F.T.</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TE</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Telephone</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TG</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Telegraph</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TL</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Telex</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TM</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Telemail</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TT</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Teletext</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>TX</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>TWX</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>XF</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>X.400 address</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>XG</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>Pager</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>XH</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>International telephone switchboard</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>XI</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>National telephone direct line</SimpleValue>
         </Value>
      </Row>
      <Row>
         <Value ColumnRef="code">
            <SimpleValue>XJ</SimpleValue>
         </Value>
         <Value ColumnRef="name">
            <SimpleValue>National telephone switchboard</SimpleValue>
         </Value>
      </Row>
   </SimpleCodeList>
</gc:CodeList>


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