Subject: RE: [xsl] FW: Xslt that worked for fop0.20.2 no longer works at later versions From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 30 Apr 2008 02:37:56 +0100 |
> Can you tell me how I can compare the previous > value in a for-each loop with the current value If the nodes you are iterating over happen to be siblings, you can use preceding-sibling::*[1]. In other cases, try <xsl:variable name="nodes" select="(the node set)"/> <xsl:for-each select="$nodes"> <xsl:variable name="p" select="position()"/> then refer to $nodes[$p - 1] Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] FW: Xslt that worked for , Michael Kay | Thread | [xsl] Rotating Graphics, Horace Burke |
Re: [xsl] xsl:element start/end tag, David Carlisle | Date | RE: [xsl] FW: Xslt that worked for , Michael Kay |
Month |