fn:current() as item()
Returns the item that was the context item at the point where the expression was invoked from the XSLT stylesheet.
This function is only available in XSLT; it is not available in XQuery.
xquery version "1.0-ml"; xdmp:xslt-eval( <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:value-of select="node-name(current()/element())"/> </xsl:template> </xsl:stylesheet>, document{<foo>hello there</foo>}) => foo