XSLT element-available() Function
Complete XSLT function reference
Definition and Usage
The element-available() function returns a Boolean value indicating whether the XSLT processor supports the specified element.
This function can only be used to test elements located in the template body. These elements are:
- xsl:apply-imports
- xsl:apply-templates
- xsl:attributes
- xsl:call-template
- xsl:choose
- xsl:comment
- xsl:copy
- xsl:copy-of
- xsl:element
- xsl:fallback
- xsl:for-each
- xsl:if
- xsl:message
- xsl:number
- xsl:processing instruction
- xsl:text
- xsl:value-of
- xsl:variable
Syntax
boolean element-available(string)
Parameters
| Parameters | Description |
|---|---|
| string | Required. Specifies the element to test. |
Example 1
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> xsl:comment is supported. xsl:comment is not supported. xsl:delete is supported. xsl:delete is not supported.
View the XSL file、 View the result。
Complete XSLT function reference