This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: referring to previous elements
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] referring to previous elements
- From: Senthilkumar Arunachalam <senthilkumar dot arunachalam at adcc dot alcatel dot be>
- Date: Thu, 06 Sep 2001 13:00:46 +0530
- Organization: Alcatel
- References: <98C7D2E5BCD2374C9AAE0BCD2E9C1DD9075B48@esebe013.NOE.Nokia.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
fine.
In the given XML ,
<xsl:for-each match="action">
<xsl:if test="current adq = previous adq">
<tr>table row</tr>
</xsl:if>
<tr> table row </tr>
</xsl:for-each>
I just want to do the above.
i have to do a check between the current adq and the previous adq and if they
are same print the table row.
If this is not yet clear kindly let me know.
Thanks,
Senthil.
Jarno.Elovirta@nokia.com wrote:
> > But i need this to be done more generic and not only for adq1
> > and adq2.
> > i need to do this for all the current element and previous elements.
> >
> > like "adq[n] and adq[n-1]".
>
> I'm not sure exactly what you want here, so could you give desired output to
> for the source in you last post.
>
> Jarno
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list