xquery e variables

Hi, I have a problem!
I must declare a variable.
I must can use this variable with a XPath
for example:
$var//part1

To declare a variable i write
declare variable $var as node * {

t1
t2

}

How can I do it?

Hi,

In Tamino’s XPath, variables cannot be defined.
I am not sure what you try to achieve, but maybe the following helps:

(it’s XQuery)



let $var :=
t1
t2

return
$var//part1

Submit this query the system return a error: NullPointer

Hi Gibbo,
what kind of tool are you using to submit the XQuery to Tamino 4.1? Please try the XQuery tool, it works for me.
Regards,
Gerald


Gerald Ristow
Tamino R&D

I used a my java program, with Tamino and with library of exist-db