Creating of absolute XPath from an XQuery result

I started an XQuery related Topic in another forum. Here is the link. Can any one please help me out?

http://tamino.forums.softwareag.com/viewtopic.php?p=8390

Hi qwerty,

there are multiple ways of doing this (user-defined functions,
more axes, order comparison, …) but all of these are
tedious and miserably not yet supported by Tamino.

The next version of Tamino will be able to do this. We are
however thinking whether we should not support this request
directly since it is obviously very useful.

Regards,
Juliane.