HI
I know this has been answered in this forum but I cnanot get it to work.
Before calling the transform() method on my transformer instance I do the following
transformer.setParameter( "Confirm", confirm)
confim is an instance of one of my own classes. I want to get the
XSLT stylesheet to call a method on this object. The method sig is
public void setTitle(String title)
Accordingly in my stylesheet I do the following
<xsl:param name="Confirm"/>
having already declared the java namespace in my stylesheet element as xmlns:java="java", and later on call the setTitle method
<xsl:value-of select="java:setTitle($Confirm,$Title)/>
where $Title is another var generated in the XSLT.
This should work, right? Well I get an error
'The first argument to the non-static Java function 'setTitle' is not a valid object reference.'
But it is as I can do this
<xsl:value-of select="$Confirm"/>
Thanks
Mark