Does this help?
for $i in input()/document
where $i/node/@attr = ‘value’
return {string($i/node/@attr)}
or
return {$i/node/@attr}
The first return returns the value of the attribute as the content of the element; the second returns “attr” as an attribute of :
If this doesn’t answer your question, please include samples - what you have attempted as a query so far and what your data looks like.
#webMethods#Tamino#API-Management