RE: [xsl] following and preceding

Subject: RE: [xsl] following and preceding
From: Jarno.Elovirta@xxxxxxxxx
Date: Mon, 13 Aug 2001 11:47:25 +0300
> <xsl:for-each select="element">
> 	<a
> href="url&amp;currentid={id}&amp;previousid={preceding::id[1]}&am
                                                            ^^^
That is select the first in reverse axis order. Without the predicate the
expression will select all preceding id elements and when you retrieve the
string value for the results of the expression, it will select the first
node ín document order.

Jarno

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


Current Thread