Name

xs:language

Facets

xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern, xs:whiteSpace

The xs:language type contains an RFC 1766 language code that corresponds to the acceptable values for the xml:lang attribute. Like xml:lang, the schema validator doesn’t test whether or not the value corresponds to a real language. That task is left to the application.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.