W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2001

xslt 1.1

From: Matthew Bentley <matthew.bentley@brookers.co.nz>
Date: Wed, 31 Jan 2001 00:03:02 -0500 (EST)
Message-ID: <A3BEF7539574D4119E61001083F94D780F3243@WELBKSEMS02>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
There is needed, along with a function to translate uppercase to lowercase,
the ability for position() to take a node as an argument, and return the
-relative- position.
For example: 
<xsl:value-of select="position(following-sibling::truck[1])" />

would return: "3"
for the following node-set:

<tank /> <- context node ->
<car />
<cycle />
<truck />

Currently there is no way in the xslt spec of comparing relative positions
of different kinds of elements.

Received on Wednesday, 31 January 2001 00:57:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT