Subject: Re: [xsl] Just the first 'x' elements within a for-each From: Niko Matsakis <niko@xxxxxxxxxxxxx> Date: Mon, 17 Mar 2003 12:09:11 -0500 |
<xsl:for-each select="some-expr"> <xsl:if test="position() <= 2"> <!-- print/process the element here --> </xsl:if> </xsl:for-each>
Hi,
I've tried numerous connotations of for-each loops, recursive functions etc but for the life of me I can't seem to get something which will only print/process the first 'x' (in my case x is 2) elements and then bail out of the for-each or just simply ignore the remaining ones found.
Any help greatly appreciated.
Si
********************************************************************************** This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. We may monitor email to and from our network.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
-- DataPower technology http://www.datapower.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Just the first 'x' elements w, Simon . Fairey | Thread | Re: [xsl] Just the first 'x' elemen, Jeni Tennison |
RE: [xsl] Answers to review questio, Lars Huttar | Date | [xsl] Pictures in XML/XSL, John Proctor |
Month |