Query making query...?

Hi, im new in Xquery, i have this

Compra_PrecioUnico Expediente de compras con precio

Hi,

you need to use the function local-name or a similar one, e.g.
let $a:= (for $b in input()/DOKEREstExp[Nombre=‘Compra_PrecioUnico’] return $b/Campo)
let $c:=$a/Nombre
for $x in $c
return {for $w in collection(‘DATA’)/Compra_PrecioUnico/node() where local-name($w)=$x return $w}

Regards

Harald

Thx a lot Dr Harald Shoening, now it works :lol: