Returns TRUE if the element has an xml:lang attribute that is the same language as the code argument. Use the lang function to select XML by language. The xml:lang attribute is a code that identifies the language of the element content. An element might include text in several languages.
Syntax
lang (
code
)
The following table describes arguments for this function:
Argument
Description
code
String datatype. Passes the element content language code.
Return Value
Boolean.
Example
The following expression examines the element content language code:
lang ( ‘en’ )
The following table contains example arguments and return values:
XML
RETURN VALUE
<Phrase xml:lang=”es”>
El perro esta en la casa.
</Phrase>
FALSE
<Phrase xml:lang=”en”>
The dog is in the house.
</Phrase>