Namespace: |
|
Type: |
|
Defined: |
globally in xml.xsd; see XML source |
Used: |
at 6 locations |
XML Representation Summary |
||||||
<... |
||||||
|
||||||
...> |
Type Derivation Tree
union of (xs:language | restriction of xs:string)
![]() |
Derivation: |
by union
|
Derivation: |
restriction of xs:string
|
<xs:annotation>
<xs:documentation>
</xs:annotation>
<div>
</xs:documentation>
<h3>lang (as an attribute name)</h3>
</div>
<p>
denotes an attribute whose value
</p>
is a language code for the natural language of the content of any element; its value is inherited. This name is reserved by virtue of its definition in the XML specification. <div>
<h4>Notes</h4>
</div>
<p>
Attempting to install the relevant ISO 2- and 3-letter
</p>
codes as the enumerated possible values is probably never going to be a realistic possibility. <p>
See BCP 47 at
</p>
<a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
http://www.rfc-editor.org/rfc/bcp/bcp47.txt
</a>
and the IANA language subtag registry at
<a href="http://www.iana.org/assignments/language-subtag-registry">
http://www.iana.org/assignments/language-subtag-registry
</a>
for further information.
<p>
The union allows for the 'un-declaration' of xml:lang with
</p>
the empty string. <xs:simpleType>
<xs:union memberTypes="xs:language">
</xs:simpleType>
<xs:simpleType>
</xs:union>
<xs:restriction base="xs:string">
</xs:simpleType>
<xs:enumeration value=""/>
</xs:restriction>
</xs:attribute>
|