This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: returning the n:th first elements


> 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() &lt; 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]