XPATH Functions

XPATH has a rich set of functions that can be used to evaluate, manipulate and otherwise traverse an XML document.

<xsl:otherwise>

The XSLT <xsl:otherwise> element provides a default value/evaluation within the scope an <xsl:choose> conditional evaluation.

<xsl:when>

The XSLT <xsl:when> element provides a conditional test to use against the contents of an XML file within the scope a larger <xsl:choose> conditional evaluation.

<xsl:choose>

The XSLT <xsl:choose> element provides a complex conditional test to use against the contents of an XML file.

<xsl:if>

The XSLT <xsl:if> element provides a simple conditional test to use against the contents of an XML file.

<xsl:copy-of>

The XSLT <xsl:copy-of> element makes a deep copy of an XML node as defined by an expression in the select attribute.

<xsl:for-each>

The XSLT <xsl:for-each> element is used to iterate over XML nodes as defined by an expression in the select attribute.

<xsl:sort>

The XSLT <xsl:sort> element is used to apply an ordering on the results selected by a <xsl:for-each> element.

<xsl:value-of>

The XSLT <xsl:value-of> element is used to extract a value from an expression defined in the select attribute.

<xsl:output>

The XSLT <xsl:output> element helps determine the formatting of the files produced by the transformation.