I'm wondering why the current() function hasn't been implemented, and if it would make much time to do so.
I'm currently in the situation where I would need a query like //cd[@title=current()/@ref]. The node navigator used for the expression evaluate isn't the document root, but a previously selected node.