Partager via


element-available Function (Windows Embedded CE 6.0)

1/6/2010

Returns True only if the expanded-name is the name of an instruction.

Syntax

            boolean element-available(string)

Parameters

  • string
    A string that is a QName.

Return Value

Returns True only if the expanded-name is the name of an instruction.

Remarks

The argument must evaluate to a string that is a QName. The QName is expanded into an expanded-name using the name space declarations in scope for the expression. This function returns True for all XSL Transformations (XSLT) elements supported in this release and False for each XSLT element not supported in this release. In addition, it returns True for all extension elements supported in this release, currently only msxsl:script. Outside of XSLT, it will always return False.

Example

The following function call returns True (provided the xsl prefix is mapped to the XSLT name space).

element-available("xsl:template")

See Also

Reference

XSLT Functions