This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: returning the n:th first elements
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: returning the n:th first elements
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 15 Mar 2000 11:33:02 -0000
- Reply-To: xsl-list at mulberrytech dot com
> Hmm, what's the best way to make xsl return the n:th first
> elements of an order-by?
>
> For example, if I have something like:
>
> <xsl:for-each select="entry[@date $ilt$ '2000-05-04']"
> order-by="-@date">
>
> but only want to process the first ten first elements in that order?
<xsl:for-each select="....">
<xsl:if test="position() < 11">
...
But I just noticed that peculiar "$ilt$" which suggests you're not using
XSLT, so the answer is, I don't know.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list