Subject: RE: [xsl] First item of a for-each From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx> Date: Mon, 16 Feb 2004 16:30:41 +0100 |
Different ways to find it out Position() is a good function. You can also do as item[1] So either When test="position()=1" Or When test="itemp[1]" -----Original Message----- From: Patricia Murray [mailto:Patricia.Murray@xxxxxxxxxxxx] Sent: 16 February 2004 16:08 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] First item of a for-each When using a .. <xsl:for-each select="item[***]"> </xsl:for-each> How can I work out when Im in the first loop. My node set has a predicate on it so I don't know where I am in the sequence but want to do something special in the first loop?? Help! Yours, Trish XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ______________________________________________________________ This message has been scanned for all viruses by BTnet VirusScreen. The service is delivered in partnership with MessageLabs. This service does not scan any password protected or encrypted attachments. If you are interested in finding out more about the service, please visit our website at http://www.btignite.com/internetservices/btnet/products_virusscreen.htm ============================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] First item of a for-each, David Carlisle | Thread | Re: [xsl] First item of a for-each, David Carlisle |
Re: [xsl] break-after="page", Herwig Posedu | Date | RE: [xsl] First item of a for-each, Andrew Welch |
Month |