xsl-list
[Top] [All Lists]

Re: First item of a for-each

2004-02-16 08:25:15
<xsl:if test="position()=1">
.....
</xsl:if>
would do it i think.
----- Original Message ----- 
From: "Patricia Murray" <Patricia(_dot_)Murray(_at_)durham(_dot_)ac(_dot_)uk>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, February 16, 2004 3:08 PM
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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>