For example:
let $targetAtt "= "att1";
let $doc := <Xml att1 = "la", att2 = "la la">
So this works:
return $doc/@*[(name(.) = $targetAtt)]
But is a more succinct syntax possible?
For example: the following Does not work
such as
return $doc/@$targetAtt.
Thanks !