Purpose · Examples · Downloads · Notes
Language Tag Analyzer (LTA) is an XSLT 2.0 implementation that checks wellformedness, validity and some other constraints of languags tags, following the ongoing revision of RFC 4646.
Output is available in three formats:
XML, RDF and HTML (for human readers with messages in English or German). For the
well-formed language tag en-US-x-myst
the XML output will be:
<lta:Language-Tag xmlns:lta="http://www.w3.org/2008/05/lta/" input="en-US-x-myst"> <lta:language type="shortest ISO 639 code"> <lta:lan ty="language" su="en" ad="2005-10-16" sup="Latn"> <lta:ds>English</lta:ds> </lta:lan> </lta:language> <lta:region type="ISO 3166-1 code"> <lta:reg ty="region" su="US" ad="2005-10-16"> <lta:ds>United States</lta:ds> </lta:reg> </lta:region> <lta:privateuse>x-myst</lta:privateuse> </lta:Language-Tag>
The XML output for a not-wellformed language tag like will en-US3-x-myst
be:
<lta:Language-Tag xmlns:lta="http://www.w3.org/2008/05/lta/" input="en-US3-x-myst"> <lta:language type="shortest ISO 639 code"> <lta:lan ty="language" su="en" ad="2005-10-16" sup="Latn"> <lta:ds>English</lta:ds> </lta:lan> </lta:language> <lta:notWellformed restTag="us3-x-myst" potentialSubtags="script region variant extension privatuse "/> </lta:Language-Tag>
This is work in progress, which reflects parts of the ongoing revision of RFC 4646. Any feedback is very welcome. Please contact Felix Sasaki.
Version: $Id: Overview.html ,v 1.6 2007/02/14 16:15:24 fsasaki Exp $