Prev |
Sitecore provides a number of XSL extension functions that provide useful functionality in XSL renderings.
For example, the sc:descendants function returns a list of all descendants under a given item just like to the XPath construct // does (the XPath construct works much faster than the sc function in .NET framework 2.0, and much slower than the sc function in .NET framework 1.1). One may use this function within an XSL rendering as one would use any XSL function, as shown in the example below.
xsl:for-each select="sc:descendants($sc_currentitem)/self::item[starts-with(@name,'A')]">
For a complete list of the available functions, please refer to the XslHelper Members section of the Sitecore V5 API Reference Guide.
Prev