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

Re: a deficiency in xslt (xpath?)

From: Jeff Caruso <jcaruso@pageflexinc.com>
Date: Mon, 25 Jun 2001 15:10:31 -0400
Message-ID: <3B378CA7.9F9E6E34@pageflexinc.com>
To: Matthew Bentley <matthew.bentley@brookers.co.nz>
CC: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Matthew Bentley wrote:

> 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.

I'm not sure I understand. This is already a legal XPath expression. All the
places in XSLT that have the "select" attribute can take an XPath Expression.
Perhaps he wants

    match="(document//chapter)[last()]"

for a match pattern in a template rule?  If so, I'd want to see a use case.

Regards,
 -- JeffC

******************************************************
Dr. Jeffrey L. Caruso <jcaruso@pageflexinc.com>
Pageflex, Inc.  215 First St.  Cambridge, MA 02142
(A Bitstream company)
Received on Monday, 25 June 2001 15:08:04 GMT

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