<xsl:template match="cdlist ">
<xsl:for-each select="cd [filed = 'C05 World']">
<tr>
...
- Almost certainly more efficient
- Parser can optimise the selection
- Nodeset being worked on is smaller
- May not give same results though
-
position() with <xsl:if> gives position in list of CDs
-
position() with predicate gives position in list of World CDs