Subject:Display x number of items which satisfy a condition Author:Minollo I. Date:31 Mar 2009 09:45 PM Originally Posted: 31 Mar 2009 07:22 PM
One way to do that is something like this:
<result>
<xsl:for-each select="//doc[str[@name='STATUS']='1']">
<xsl:if test="position() <= 10">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</result>
Subject:Display x number of items which satisfy a condition Author:Minollo I. Date:31 Mar 2009 09:18 PM
Don't know what XSLT processor you are using, but if you are using any decent one and the problem is as you described, you will indeed get 10 entries (or less), no matter if the first million entries don't satisfy the condition.