This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: selecting specific number of nodes from a list of nodes
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 9 Apr 2002 09:09:57 +0100
- Subject: RE: [xsl] selecting specific number of nodes from a list of nodes
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I have a list of nodes that I can select based on a criteria. But
> I need only a specific number of them. For eg. a criteria may
> return 10 nodes but I just need to select the first 6 nodes. How
> can I do this. I need to do this for pagination in FO.
$list-of-nodes[criterion-1][criterion-2][position()<=6]
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list