I'm using dyn:evaluate

<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  version="1.0"
  xmlns:dyn="http://exslt.org/dynamic";
  extension-element-prefixes="dyn"
  >

  <xsl:param name="StartPointStr">//grammar</xsl:param>
  <xsl:param name="StartNode" select="dyn:evaluate($StartPointStr)"/>

[...]

The parameters are stylesheet globals so I'm capturing some params from a URL actually (axkit automatically fills them in). I'm taking an XPath as a string in StartPointStr, and then using dyn:evaluate to evaluate it as an XPath, in a select statement so that the parameter holds a node set.

the evaluate functions works on any string not just params. I'm using LibXSLT btw, not sablotron - that could make a BIG difference (er, especially since I don't think sablot supports EXSLT.... (except for javascript libs or something))

simon

On Sunday, March 30, 2003, at 01:16 PM, Christian Jaeger wrote:

(We would still be glad to get a working example of a .xsl sheet that makes use of those functions.)


--
www.simonwoodside.com -- 99% Devil, 1% Angel


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to