I know the title's a bit odd. I'm trying to set up an XQuery for which the xpath is set previously according to input parameters.
If I was going to do this normally I'd do something like:
Expand|Select|Wrap|Line Numbers
- let $first := data($node//h2)
But I want to set $path= 'h2' before the xquery and then...
Expand|Select|Wrap|Line Numbers
- let $first := data($node$path)
Expand|Select|Wrap|Line Numbers
- let $first := data(concat($node,$path))
Thanks in advance!