Table of Contents

Search

  1. Preface
  2. XML Concepts
  3. Using XML with PowerCenter
  4. Working with XML Sources
  5. Using the XML Editor
  6. Working with XML Targets
  7. XML Source Qualifier Transformation
  8. Midstream XML Transformations
  9. XML Datatype Reference
  10. XPath Query Functions Reference

XML Guide

XML Guide

lang

lang

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>
TRUE

0 COMMENTS

We’d like to hear from you!