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: Position() of parent node



> 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


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