XSLT transformation not compling in 1.5 (but did in 1.4)
843834Nov 9 2005 — edited Nov 9 2005I'm getting the following error:
ERROR: 'The first argument to the non-static Java function 'setSolName' is not a valid object reference.'
FATAL ERROR: 'Could not compile stylesheet'
I pass parameters from my java code to the transformer.
The first part of the xsl looks like this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xalan/java" version="1.0">
<xsl:param name="solutionDefsMgr"/>
<xsl:param name="xmlFile"/>
<xsl:param name="configs"/>
<xsl:param name="configDefsMgr"/>
<xsl:template match="/solution-def">
<xsl:apply-templates select="configurations"/>
<xsl:for-each select="solutions">
<xsl:sort data-type="number" select="@order"/>
<xsl:for-each select="solution">
<xsl:variable name="loadingSol" select="concat('Loading solution ',@name,' definition ...')"/>
<xsl:value-of select="java:com.traiana.platform.sys.utils.SolutionUtil.traceToOut($loadingSol)"/>
<xsl:variable name="solution" select="java:com.traiana.platform.sys.solution.defs.SolutionDef.new(@name)"/>
<xsl:value-of select="java:setOrder($solution, @order)"/>
<xsl:value-of select="java:setSolName($configs, @name)"/>
I saw other issue opened on this matter (http://forum.java.sun.com/thread.jspa?threadID=637772)
but it didn't helped much.
I'll appreciate any help
Adi