Subject: Re: [xsl] selecting specific number of nodes from a list of nodes From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Mon, 08 Apr 2002 23:05:20 +0200 |
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.
You can use a predicate and the position function, for example <xsl:apply-templates select="item[position() <=6]"/> will apply templates to the first six item elements.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] selecting specific number of , Jaideep Chadha | Thread | RE: [xsl] selecting specific number, Michael Kay |
Re: [xsl] How to select a range of , J.Pietschmann | Date | RE: [xsl] How to select a range of , Sreeni Chippada |
Month |