a deficiency in xslt (xpath?)

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 UTC