by Pieter Brinkman
5. August 2009 09:21
While working with Umbraco and Sitecore I learned some Xsl tricks.
The following example shows how to show the first 10 items in a HTML list.
[code:xml]
<ul>
<xsl:for-each select="*">
<xsl:if test="position()<='9'">
<li>
<a href="{@link}">
<xsl:value-of select="@name"/>
</a>
</li>
</xsl:if>
</xsl:for-each>
</ul>
[/code]