Is it possible to write an XPath expression that gets the root of a node node within a node-set, only with a reference to the node?
Using "/" will not work for me, because it only refers to the root of the input document. I would also like it to work without context and use it for a generic node-set that can be created dynamically during processing.
For instance...
<xsl:function name="my:getRoot"> <xsl:param name="n" /> <xsl:variable name="rootnode" select="some_solution($n)"/> </xsl:function>
Thanks for the help.
source share