Hi,

  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:for-each select="$xpaths/xpaths/xpath">
           
<xsl:value-of select="."/>!
          
<xsl:variable name="res"> <xsl:copy-of select="document($checkDoc)/saxon:evaluate(.)"/></xsl:variable>
           res={
<xsl:value-of select="$res"/>}
       
</xsl:for-each>

 

I am concerned that the line document($checkDoc)/saxon:evaluate(.) is not correct?


Martin