XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Matt AdamsSubject: 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.

Matt

Posttop
Minollo I.Subject: Re: Problems with copy-of and saxon:evaluate()
Author: Minollo I.
Date: 20 Sep 2004 05:49 PM
Matt,
you are defining the wrong namespace; for Saxon extensions you should use
xmlns:saxon="http://saxon.sf.net/"

See http://www.saxonica.com/documentation/extensions/intro.html for more
details.

Thanks,
Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.