[Home] [By Thread] [By Date] [Recent Entries]
At 05:25 AM 11/24/2003, Sajjad wrote:
Is there a function to detect the document language? Now that would be very impressive. While XSLT has no such function, as it happens it does have the function lang(), which is used to retrieve the value of the xml:lang attribute currently in scope. (xml:lang is defined by XML -- it's basically a flag to identify the language of an element, its attributes and descendants.) xml:lang is defined in the XML Recommendation (http://www.w3.org/TR/REC-xml, 2.12); the lang() function is defined in the XPath Rec (http://www.w3.org/TR/xpath, 4.3). Enjoy, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



