When a stylesheet function (xsl:function) is called
from within an XPath predicate, (or in other
situations where the context node is not the same as
the current node), then the current node is not reset
correctly on return from the stylesheet function.
(Inside the body of the function, the current node
will be taken from the XPath context node at the point
of the function call).
Applies to 7.0 and 7.1 only. Source code fixed.