<catalog>
<cd>
<artist>Bob Dylan</artist>
<name>The first lp</name>
<cd>
<cd>
<artist>Bob Dylan</artist>
<name>The second lp</name>
<cd>
<cd>
<artist>Bob Dylan</artist>
<name>The third lp</name>
<cd>
<cd>
<artist>Bob Dylan</artist>
<name>The fourth lp</name>
<cd>
<cd>
<artist>Bob Dylan</artist>
<name>The fifth lp</name>
<cd>
</catalog>
and I have too a xslt document for transform the output. I惴 using a loop
<xsl:for-each select="cd/artist"> for show all the information about cd愀,
but now I惴 only want to show the first 3 cd. How can I do this?
<xsl:for-each select="cd[position() <= 3]]/artist">
--
Joe