transparent
Programmer
I have the following xsl, which I need to modify so that it will return only 3 instances of content/story. How do I do this?
<?xml version="1.0"?>
<xsl:template xmlns:xsl="
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td>
<xsl:for-each select="content/story" order-by="- file">
<xsl:if test="published[.!value()='true']">
<p class="headline">
<a>
<xsl:attribute name="href">
<xsl:value-of select="folder" />/<xsl:value-of select="page" />
</xsl:attribute>
<xsl:value-of select="headline" />
</a>
</p>
<p class="blurb"><xsl:value-of select="folder" />: <xsl:value-of select="blurb" /> </p>
</xsl:if>
</xsl:for-each>
</td></tr>
</table>
</xsl:template>
<?xml version="1.0"?>
<xsl:template xmlns:xsl="
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td>
<xsl:for-each select="content/story" order-by="- file">
<xsl:if test="published[.!value()='true']">
<p class="headline">
<a>
<xsl:attribute name="href">
<xsl:value-of select="folder" />/<xsl:value-of select="page" />
</xsl:attribute>
<xsl:value-of select="headline" />
</a>
</p>
<p class="blurb"><xsl:value-of select="folder" />: <xsl:value-of select="blurb" /> </p>
</xsl:if>
</xsl:for-each>
</td></tr>
</table>
</xsl:template>