| FlexDoc/XML XSDDoc Demo | XML Schemas for XHTML 1.1

Overview All Components NS-Bindings | FRAMES NO FRAMES | SEARCH |

attribute "xml:lang"

Namespace: | http://www.w3.org/XML/1998/namespace
Type: | anonymous simpleType (union of (xs:language | restriction of xs:string))
Defined: | globally in xml.xsd; see XML source
Referenced: | by 3 locations

Attribute Value Detail:

xs:language | ""

union of

1. xs:language
2. enumeration of xs:string

   Values (1): | ""

Description

### 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.

Related Components

- Available in elements (72):
  a, abbr, acronym, address, area, b, big, blockquote, body, button, caption, cite, code, col, colgroup, dd, del, dfn, div, dl, dt, em, fieldset, form, h1, h2, h3, h4, h5, h6, head, hr, html, i, img, input, ins, kbd, label, legend, li, link, map, meta, noscript, object, ol, optgroup, option, p, pre, q, samp, select, small, span, strong, style, sub, sup, table, tbody, td, textarea, tfoot, th, thead, title, tr, tt, ul, var

Referenced By

- In definitions of attributeGroups (3):
  xhtml.Global.i18n.attrib [ref], xhtml.I18n.attrib [ref], xml:specialAttrs [ref]

Anonymous Type Detail

Type Derivation Tree union of (xs:language | restriction of xs:string) simpleType

Derivation: | by union of

Member Types

1. xs:language
2. anonymous simpleType:

   Derivation: | restriction of xs:string
   Facets: |
   enumeration: | ""

Overview All Components NS-Bindings | FRAMES NO FRAMES | SEARCH |

XML schema documentation generated with FlexDoc/XML 1.15 using FlexDoc/XML XSDDoc 3.5 template set. All XSD diagrams generated by FlexDoc/XML DiagramKit.