On Monday, 20. January 2003 08:55, S Woodside wrote:
> Thanks for all the help everyone. The solution is to use dyn:evaluate()
> which is available in LibXSLT (but not sablotron). It takes a string
> and returns a node-set (or maybe a result tree fragment, I'm still
> confused about that).

Whatever it does, you can always use exsl:node-set() to convert a result tree 
fragment to a node-set. Btw, there is a similar function in Saxon (a Java 
XSLT processor), which libxslt also supports. While the name slipped my mind 
at the moment (probably saxon:evaluate() or something), it might be the 
better choice if your XSLT might get used in the Java world.

> >> I can't find any functions that turn an XPath string (from a var) into
> >> a node-set. GRR.
> >
> > Well, the reason is simple: XSLT was explicitly designtd to not
> > support this.
> > But there is hope: look at www.exslt.org, there are numerous extension
> > functions documented. While not all of them are available with
> > libxslt, there
> > is one which allows you to do what you want.


-- 
CU
  Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94


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

Reply via email to