The position of *which* node in *what* nodeset?
You haven't specified either.
Also, the XPath position() function is defined on the current *node-list*,
not node-set. This means that position() can be used:
in a relation in predicates within an XPath expression to select nodes
whose position in the current node-list satisfies this relation,
or
in the body of xsl:for-each or of xsl:template to return the position of
the current node in the current node-list.
=====
Cheers,
Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL
"Hans-Michael Rupp" <ha*******@danet.de> wrote in message
news:3F**************@danet.de...
Hallo!
How can find out the postion of a node with a particular content in the
nodeset WITHOUT being in the context?
I would like have something like
<xsl:variable name="position" select="position(/foo/bar[blubber='test'])">
of course position() does not work this way.
Is there another way to solve this?
Many thanks,
Hans