This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Position() of parent node
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Position() of parent node
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Tue, 6 Feb 2001 19:00:56 GMT
- References: <20010206182945.14563.qmail@web6305.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> A single node can have
> different "positions" in different node-sets.
grrr.
different positions in different node lists.
It can have different positions in the _same_ node set, by default the
current node list generated from a node set consists of the nodes in
document order, but that can be varied, eg with xsl:sort.
<xsl:for-each select="$x">
and
<xsl:for-each select="$x">
<xsl:sort selct="foo">
iterate over the same node set, $x, but produce a different current node
list (and so position() of each node will be different in th etwo cases).
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list