Hello all,
I found it by myself.
In Germany we have an adage: "Who is able to read, has every advantage
on his side!" :) Don't know whether this is correctly translated, but
the sense is clear.
Thx
mfw
florianwendland@... schrieb:
> Hello all,
>
> a question concerning the evaluate-extension of Saxon.
>
> I want to evaluate dynamically a XPath expression, passed to the process
> as parameter $select. The context root is also passed as parameter
> $context. My Code looks like this, but that doesn't work.
>
> ###
> declare variable $select as xs:string external;
> declare variable $values external;
> <Values>
> {
> for $c in $values saxon:evaluate($select)
> return
> <Value>{$c}</Value>
> }
> </Values>
> ###
>
> Is there the possibility in SAxon to set the context node externally?
> Since now, I allways pass the context node as a parameter. If this
> possible, the new code must look similiar to this, I guess:
>
> ###
> declare variable $select as xs:string external;
> <Values>
> {
> for $c in saxon:evaluate($select)
> return
> <Value>{$c}</Value>
> }
> </Values>
> ###
>
> Am I right? But how to set the context of an XQuery externally?
>
> Thx
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> saxon-help mailing list
> saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
|