Namespace: |
|
Type: |
|
Content: |
complex, 10 attributes, 5 elements |
Defined: |
globally in codebook.xsd; see XML source |
Used: |
never |
XML Representation Summary |
|||||||||||||||||||||||||||||||||
<codeBook | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
> | |||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||
</codeBook> |
Every element in the DDI DTD/Schema has the following attributes:
ID - This uniquely identifies each element.
xml-lang - Use of this attribute is deprecated, and it will no longer be supported in the next major version of the DDI specification. For newly created XML documents, please use xml:lang.
xml:lang - This attribute specifies the language used in the contents and attribute values of any element in the XML document. Use of ISO (www.iso.org) language codes is recommended.
source - This attribute identifies the source that provided information in the element. If the documentation contains two differing sets of information on Sampling Procedure -- one provided by the data producer and one by the archive where the data is deposited -- this information can be distinguished through the use of the source attribute.
Note also that the DDI contains a linking mechanism permitting arbitrary links between internal elements (See Link) and from internal elements to external sources (See ExtLink).
The top-level element, codeBook, also includes a version attribute to specify the version number of the DDI specification.
codeBookAgency - This attribute holds the agency name of the creator or maintainer of the codeBook instance as a whole, and is designed to support forward compatibility with DDI-Lifecycle. Recommend the agency name as filed with the DDI Agency ID Registry with optional additional sub-agency extensions.
<xs:element name="codeBook" type="codeBookType"/> |
Type: |
xs:NCName, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="codeBookAgency" type="xs:NCName" use="optional"/> |
Type: |
xs:anyURI, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="ddiCodebookUrn" type="xs:anyURI" use="optional"/> |
Type: |
xs:anyURI, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="ddiLifecycleUrn" type="xs:anyURI" use="optional"/> |
Type: |
xs:string, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="elementVersion" type="xs:string" use="optional"/> |
Type: |
|
Use: |
optional |
Defined: |
xs:dateTime | xs:date | xs:gYearMonth | xs:gYear |
<xs:attribute name="elementVersionDate" type="dateSimpleType" use="optional"/> |
Type: |
xs:ID, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="ID" type="xs:ID" use="optional"/> |
Type: |
|
Use: |
optional |
Defined: |
enumeration of xs:NMTOKEN |
Enumeration: |
"archive", "producer" |
Default: |
"producer" |
Type Derivation Tree xs:NMTOKEN (restriction) simpleType |
Derivation: |
restriction of xs:NMTOKEN |
|||
Facets: |
|
<xs:attribute default="producer" name="source"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="archive"/> <xs:enumeration value="producer"/> </xs:restriction> </xs:simpleType> </xs:attribute> |
Type: |
xs:string, predefined |
Use: |
optional |
Defined: |
Fixed: |
"2.5" |
<xs:attribute fixed="2.5" name="version" type="xs:string"/> |
Type: |
xs:NMTOKEN, predefined |
Use: |
optional |
Defined: |
<xs:attribute name="xml-lang" type="xs:NMTOKEN" use="optional"/> |
Type: |
xs:language, predefined |
Use: |
optional |
Defined: |
<xs:attribute ref="xml:lang" use="optional"/> |
Type: |
dataDscrType, complex content |
Defined: |
<xs:element maxOccurs="unbounded" minOccurs="0" ref="dataDscr"/> |
Type: |
docDscrType, complex content |
Defined: |
<xs:element maxOccurs="unbounded" minOccurs="0" ref="docDscr"/> |
Type: |
fileDscrType, complex content |
Defined: |
<xs:element maxOccurs="unbounded" minOccurs="0" ref="fileDscr"/> |
Type: |
otherMatType, complex content |
Defined: |
<xs:element maxOccurs="unbounded" minOccurs="0" ref="otherMat"/> |
Type: |
stdyDscrType, complex content |
Defined: |
<xs:element maxOccurs="unbounded" ref="stdyDscr"/> |
XML schema documentation generated with DocFlex/XML 1.8.7 using DocFlex/XML XSDDoc 2.7.0 template set |