Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT function-available() Function

XSLT function-available() Function


XSLT Function Reference Object Complete XSLT function reference


Definition and Usage

The function-available() function returns a Boolean value indicating whether the XSLT processor supports the specified function.

You can test XSLT functions and inherited XPath functions.


Syntax

boolean function-available(string)

Parameters

Parameters Description
string Required. Specifies the function to test.

Example 1

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

xsl:choose

sum() is supported.

xsl:otherwise

sum() is not supported.

xsl:choose

current() is supported.

xsl:otherwise

current() is not supported.

View the XSL file、 View the result。


XSLT Function Reference Object Complete XSLT function reference