Hi,
In my xquery, I use the root() function to return the root element of an element. I could get the root element, but I couldn't get any attributes of it.
For example:
for $value in collection()/otx/imports/import
let $otx:=root($value)
return $otx/@package
Thanks
Cheers,
An