lang
Returns true if the context node has an xml:lang attribute with a value that either matches exactly the string argument, or is a subset of it. Otherwise, the function returns false.

Languages
XSLT 1.0.
Parameters
Name | Type | Description |
---|---|---|
string | xs:string | The language code to check, for example, "en". |
Example
See the example given for the lang function of the xpath2 library.