This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: following and preceding
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] following and preceding
- From: Jarno dot Elovirta at nokia dot com
- Date: Mon, 13 Aug 2001 11:47:25 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xsl:for-each select="element">
> <a
> href="url&currentid={id}&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