8.5 The lang and case-order Attributes

One attribute of sort that I haven't discussed is lang. This optional attribute lets you specify a language token, such as jp or ru, so that sorting rules will be determined by the alphabet of a language such as Japanese or Russian (Cyrillic). If the lang attribute is absent, an XSLT processor is supposed to determine the language system environment. This attribute does not yet appear to be supported by all processors, but the structure for that support is in place and over time, as demand arises for XSLT in more languages, support for lang will broaden.

Another missing attribute is the optional case-order. This attribute is supposed to allow you to sort by uppercase first using an attribute value of upper-first, or to sort by lowercase first with lower-first. The XSLT specification, however, allows for this to be language dependent, and so there are varying interpretations of how this is supposed to work. In some languages, a word may have a different meaning based on capitalization rather than spelling. In such cases, case-order will be useful.



Learning XSLT
Learning XSLT
ISBN: 0596003277
EAN: 2147483647
Year: 2003
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net