Component 
SUMMARY: XML REP | ELEMENT | USE
DETAIL: DESC | XML SRC | TYPE
XML Schema for
XML Schemas 1.0

attribute "xml:lang"
Namespace:
Type:
anonymous simpleType (union of (xs:language | restriction of xs:string))
Defined:
globally in xml.xsd; see XML source
Used:
XML Representation Summary
<...
   
 = 
...>
Included in content model of elements (2):
Known Usage Locations
Annotation

lang (as an attribute name)

denotes an attribute whose value 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.

Notes

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 BCP 47 at http://www.rfc-editor.org/rfc/bcp/bcp47.txt and the IANA language subtag registry at http://www.iana.org/assignments/language-subtag-registry for further information.

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

Anonymous Type Detail
Type Derivation Tree
union of (xs:language | restriction of xs:string)
  simpleType
Derivation:
by union
Member Types
  1. anonymous simpleType:
    Derivation:
    restriction of xs:string
    Facets:
    enumeration:
    ""
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="lang">
<xs:simpleType>
<xs:union memberTypes="xs:language">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value=""/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>

 Component 
SUMMARY: XML REP | ELEMENT | USE
DETAIL: DESC | XML SRC | TYPE
XML Schema for
XML Schemas 1.0

WSDL documentation generated with FlexDoc/XML 1.13 using FlexDoc/XML WSDLDoc 1.2.5 template set. All XSD diagrams generated by FlexDoc/XML DiagramKit.