W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 2001

RE: "Dynamic" XPath expressions

From: Michael Kay <mhkay@iclway.co.uk>
Date: Wed, 12 Sep 2001 17:15:20 +0100
To: "'Peter Marks'" <petermarks@blueyonder.co.uk>, <xsl-editors@w3.org>
Message-ID: <000301c13ba6$1ef028b0$bc3d3c3e@PCUKMKA>
A personal response:

> I was looking for a way to do a mach against a dynamically
> constructed XPath expression...

> I could not find any way to do this kind of XPath expression.

You are right, there is no way to do this in standard XSLT 1.0.
> In the XSL 2.0 requirements, I saw the following:
> > 2.18 Could Make Coercions Symmetric By Allowing Scalar to Nodeset
> Conversion
I don't think this is related to your requirement.

Personally, I think your requirement is quite a common one and I'd like to
get it back on the agenda, though the pressure is now to get XSLT 2.0 out of
the door rather than adding more features.

In the meantime, take a look at saxon:evaluate() or xalan:evaluate().

Mike Kay
Received on Wednesday, 12 September 2001 12:10:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:51 UTC