Wildcards

XPATH allows the use of wildcards to write more robust path expressions where the use of specific path expressions is either impossible or undesirable.

How to use conditional statements in XSL

XSL provides support for conditional patterns, statements and values – much the same as any other programming language. The appropriate application of the available XSL functions allows you to implement each pattern.

<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.