element-available Function

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

boolean element-available(string)

Parameters

  • string
    A string that is a QName.

Return Values

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")

Requirements

None.

See Also

XSLT Functions

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.