Re: [xsl] XPATH query from variable

Subject: Re: [xsl] XPATH query from variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 3 Mar 2003 17:25:53 GMT
<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


Current Thread