• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error using dyn.evaluate function

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dyn="http://exslt.org/dynamic"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
extension-element-prefixes="dyn msxsl">

<msxsl:script implements-prefix="dyn" language="jscript">
function evaluate(context, expression)
{
return context.nextNode().selectNodes(expression);
}
</msxsl:script>

.
.
.
<xsl:variable name="string1">businessUnit</xsl:variable>
<xsl:template match="/">
.
.
.
<xsl:value-of select="dyn:evaluate(., concat('@', $string1))" />
</xsl:template>
</xsl:stylesheet>

when i run it using java prog it gives following error
ERROR: 'The first argument to the non-static Java function 'evaluate' is not a valid object reference.'
FATAL ERROR: 'Could not compile stylesheet'
Invalid factory configuration

and when i use XMLSPy it gives following error

Error in XPath expression
CSharp execution error - 'Error: Exception has been thrown by the target of an invocation.'

can anybody help?

thanks


 
reply
    Bookmark Topic Watch Topic
  • New Topic