<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