Subject:Problems with copy-of and saxon:evaluate() Author:Matt Adams Date:20 Sep 2004 05:17 PM
I have a xslt stylesheet with the following lines:
xmlns:saxon="http://net.sf.saxon.Transform"
....
<xsl:template name="evalexp">
<xsl:param name="myexp" as="xs:string"/>
<xsl:for-each select="$docu">
<xsl:copy-of select="saxon:evaluate($myexp)" />
</xsl:for-each>
</xsl:template>
When applying the stylesheet above it yields an error:
Error at copy-of on line 50 of file:/D:/tmp/c/IFRS-XBRL/validation.xslt:
No method or field matching evaluate with 1 parameter found in class net.sf.saxon.Transform
Transformation failed: Run-time errors were reported
Why?
I just want to display the result of the saxon:evaluation (true or false)
and return this result to the calling template.
How do I call the evaluate() function of saxon otherwise?
I am using saxon 8.