W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2001

a deficiency in xslt (xpath?)

From: Matthew Bentley <matthew.bentley@brookers.co.nz>
Date: Mon, 25 Jun 2001 00:07:12 -0400 (EDT)
Message-ID: <A3BEF7539574D4119E61001083F94D78BDA2EE@WELBKSEMS02>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Hi,
I would recommend that in a future version of XSLT, allowance be made for
expressions like 'select="(document//chapter)[last()]"' 
i.e select the last chapter element descendant of document.
At the moment all you can do is 'select="document//chapter[last()]"', which
selects the last chapter under any given parent under document i.e returns
multiple results in the following situation:
<document>
	<part>
		<chapter />
		<chapter />
		<chapter />
	</part>
	<part>
		<chapter />
		<chapter />
	</part>
	<part>
		<chapter />
		<chapter />
	</part>
</document>
This is very limiting in many situations-
Cheers,
M@


Received on Monday, 25 June 2001 04:40:13 GMT

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