This is my XML
<?xml version="1.0"?>
<detail>
<title>
<link>a</link></title>
<title>
<link>b</link></title>
<title>
<link>c</link></title>
<title>
<link>d</link></title>
<title>
<link>e</link></title>
</detail>
This is my XSL
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:for-each select="//title">
<xsl:value-of select="link"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
This gives me an output "a b c d e" but I only need to be able to print a b and c only and not all of them. How do I control my xsl:for-each loop?