Hi all!
First of all sorry If this is not the right forum to do this question…
We’re new in XQuery and we’re developing jsp’s which are taking data from our tamino DB through SAG’s Turc@ana
System Management Content. Before we write Xqueryes on the jsp’s we try all of them on Tamino XQuery to be sure.
There’s something strange in our last Xquery. We tried this on XQuery:
input()/Imagen[idTurcana=92]
and it seems to work fine, but now we have just changed the ID for our var, just like this:
xquery=“input()/Imagen[idTurcana=”+id+“]”
We just get nothing… (!?) The query seems to return empty.
Anyone can tell why? Thanks in advance for your help!
Santi
I think you can try this…
xquery=“input()/Imagen[@idTurcana="”+id+“"]”