Language Tag Analyzer (LTA)

Purpose · Examples · Downloads · Notes

Purpose

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.

Examples

Output for the well-formed language tag en-US-x-mystlike above 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">
  <subtag>en</subtag>
  <added>2005-10-16</added>
  <description>English</description>
  <suppress-script>Latn</suppress-script>
 </lta:language>
 <lta:region type="ISO 3166-1 code">
  <subtag>US</subtag>
  <added>2005-10-16</added>
  <description>United States</description>
 </lta:region>
 <lta:privateuse>x-myst</lta:privateuse>
</lta:Language-Tag>

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">
  <subtag>en</subtag>
  <added>2005-10-16</added>
  <description>English</description>
  <suppress-script>Latn</suppress-script>
 </lta:language>
 <lta:notWellformed restTag="us3-x-myst"
  potentialSubtags="script region variant extension privatuse "/>
  </lta:Language-Tag>

Downloads

Notes

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 $