This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Storing xpath expressions in a vaiable
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Storing xpath expressions in a vaiable
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 29 Sep 2000 14:41:18 +0100
- Reply-To: xsl-list at mulberrytech dot com
> I am trying to store an xpath expression in variable and
> trying to
> evaluate it and storing the results in another variable. The xpath
> expression used might depend on the value of some
> parameter(s) passed to
> the style sheet.
You can't do this in standard XSLT, all XPath expressions must be explicit
"at compile time".
Saxon has an extension, called stored expressions, that does exactly what
you're looking for: allows you to build an XPath expression dynamically as a
string.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list