RE: Storing xpath expressions in a vaiable

Subject: RE: Storing xpath expressions in a vaiable
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 29 Sep 2000 14:41:18 +0100
>      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


Current Thread