TOC PREV NEXT INDEX

Netscape XSLT


lang()


The lang() function tests whether the language of the context node, as identified by the xml:lang attribute is the same as, or is a sublanguage of (e.g. en-us as a sublanguage of en), the language given as an argument.

Syntax:

boolean lang(string) 

Arguments:

A string representing the language being tested.

Result:

If the language matches the language of the context node, true. Otherwise, false.

Defined: XPath, section 4.3.

NS support: Supported.


Send comments on this document to devdoc-feedback@netscape.com
TOC PREV NEXT INDEX