language

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
languageCode restriction of xs:string required
xml:id xs:ID optional
See http://www.w3.org/TR/xml-id/ for
information about this attribute.
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.

Used By

Source

<xs:element name="language">
  <xs:complexType mixed="true">
    <xs:attribute ref="xml:id"/>
    <xs:attribute ref="xml:lang"/>
    <xs:attribute name="languageCode" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:pattern value="[a-z]{3}"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

Sample

< languageDeclaration xmlns = "urn:isbn:1-931666-33-4" >

< language languageCode = "ger" >

deutsch

</ language>

< script scriptCode = "Latn" >

Latin Alphabet

</ script>

</ languageDeclaration>