I am trying to use the saxon:evaluate extension function to check that two xml document are identical.
Firstly I read in the first file and compose a list of xpaths from that file. Then I want to cycle through these xpaths and apply them to a second document.
The following is where the xpaths are applied they are in the $xpaths variable which is a list of <xpath> elements inside a root <xpaths> element:
<xsl:variable name="res"> <xsl:copy-of select="document($checkDoc)/saxon:evaluate(.)"/></xsl:variable>
I am concerned that the line document($checkDoc)/saxon:evaluate(.) is not correct?