Pieter Brinkman Blog

XSL: for-each with max items

1 min readpieterXSL

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.

<xsl:if test="position()      -          []({@link})