gc:CodeList
Top-level (root) element for a genericode code list definition. A code list definition defines the details of a particular (version of a) code list.
Element information
Namespace: http://docs.oasis-open.org/codelist/ns/genericode/1.0/
Schema document: genericode.xsd
Type: gc:CodeListDocument
Properties: Global, Qualified
Content
- Sequence [1..1]
- Annotation [0..1] User annotation information.
- Identification [1..1] Identification and location information (metadata).
- Choice [1..1]
- ColumnSet Definition of a column set (columns and keys for the code list).
- ColumnSetRef Reference to a column set defined in an external column set or code list document.
- Choice [0..1]
- SimpleCodeList Simple (explicit) code list definition.
from group gc:SimpleCodeListSequence
from group gc:DocumentHeaderfrom group gc:ColumnSetChoicefrom group gc:OuterCodeListChoice
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
xml:base | [0..1] | xsd:anyURI | Base URL which applies to relative location URIs. |
Sample instance
<gc:CodeList> <Identification> <ShortName>CountryIdentificationCode</ShortName> <LongName xml:lang="en">Country</LongName> <LongName Identifier="listID">ISO3166-1</LongName> <Version>0.3</Version> <CanonicalUri>urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode</CanonicalUri> <CanonicalVersionUri>urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode-2.0</CanonicalVersionUri> <LocationUri>http://docs.oasis-open.org/ubl/os-ubl-2.0/cl/gc/default/CountryIdentificationCode-2.0.gc</LocationUri> <Agency> <LongName xml:lang="en">United Nations Economic Commission for Europe</LongName> <Identifier>6</Identifier> </Agency> </Identification> <ColumnSet> <Column Id="code" Use="required"> <ShortName>Code</ShortName> <Data Type="normalizedString"/> </Column> <Column Id="name" Use="optional"> <ShortName>Name</ShortName> <Data Type="string"/> </Column> <Column Id="numericcode" Use="optional"> <ShortName>NumericCode</ShortName> <Data Type="string"/> </Column> <Key Id="codeKey"> <ShortName>CodeKey</ShortName> <ColumnRef Ref="code"/> </Key> </ColumnSet> <SimpleCodeList> <Row> <Value ColumnRef="code"> <SimpleValue>AF</SimpleValue> </Value> <Value ColumnRef="name"> <SimpleValue>AFGHANISTAN</SimpleValue> </Value> <Value ColumnRef="numericcode"> <SimpleValue>004</SimpleValue> </Value> </Row> <Row> <Value ColumnRef="code"> <SimpleValue>AL</SimpleValue> </Value> <Value ColumnRef="name"> <SimpleValue>ALBANIA</SimpleValue> </Value> <Value ColumnRef="numericcode"> <SimpleValue>008</SimpleValue> </Value> </Row> <Row> <Value ColumnRef="code"> <SimpleValue>ZM</SimpleValue> </Value> <Value ColumnRef="name"> <SimpleValue>ZAMBIA</SimpleValue> </Value> <Value ColumnRef="numericcode"> <SimpleValue>894</SimpleValue> </Value> </Row> <Row> <Value ColumnRef="code"> <SimpleValue>ZW</SimpleValue> </Value> <Value ColumnRef="name"> <SimpleValue>ZIMBABWE</SimpleValue> </Value> <Value ColumnRef="numericcode"> <SimpleValue>716</SimpleValue> </Value> </Row> </SimpleCodeList> </gc:CodeList>