Returns True if and only if the expanded-name is the name of an instruction.
boolean element-available(string)
The argument must evaluate to a string that is a QName. The QName is expanded into an expanded-name using the namespace declarations in scope for the expression. This function returns True for all 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.
The following function call returns True (provided the xsl prefix is mapped to the XSLT namespace):
element-available("xsl:template")