xsl-list
[Top] [All Lists]

Re: XPATH query from variable

2003-03-03 10:25:53

<xsl:value-of select="$clickThroughImages/../../position()"/>

ypu can't put any function that returns an integer as an argument to the
/ operator that has to return a node set.


The comparison with @ is spurious attribute nodes are properties of
element nodes but position isn't a property of the node, its a property
of the select expression. If you select with . then every element has
position() is always 1.

You want count($clickThroughImages/../../preceding-sibling::*)+1

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>