This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: following and preceding


> <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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]