Subject: RE: String->LocationPath From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Mon, 29 Nov 1999 10:38:03 -0700 |
Juliane Harbarth wrote: > I tried to run a stylesheet that inputs a parm and > interprets the value of it as a location path. > I.e. > <xsl:param name="query">no-default</xsl:param> Here, $query is a result tree fragment. (Not a string, as you assumed). > ... > <xsl:template name="querytemp"> > <xsl:apply-templates select="$query"/> Here, $query must be a node-set. The only way to make a variable be a node-set is to put a node-set-selecting XPath expression in the select attribute of the xsl:param or xsl:variable element. > Is there anything I can do except generating the > stylesheet on the fly ? You can write an extension function that takes the string value of a data object and returns a node-set based on evaluation of the string as an XPath expression. :) But no, there's nothing built-in to XSLT that will let you do what you want. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: String->LocationPath, Nikolai Grigoriev | Thread | strip non-text space, returns, tabs, Russell Allen |
Re: How do I drop an apostrophe?, David Carlisle | Date | Re: String->LocationPath, David Carlisle |
Month |