[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XPATH query from variable
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|