How to pass populated java objects in <xsl:param>
Hi Michael,
I have a fully populated java object using which I would like call methods on, from the xsl file. I don't want to use
<xsl:variable name="ref" select="java:com.foo.bar.SomeClass.new()"/>,
since the new instance created does not have the properties which are required by the method I call.
I tried transformer.setParamater("ref", this) passing the fully populated object where I am transforming the xsl.
and then declared the parameter in xsl as <xsl:param name="ref" />
But the problem is I am not able to access it by saying,
<xsl:variable name="var" select="java:doSomething($ref)">
nor
<xsl:variable name="var" select="java:$ref"/>
and call methods using $var
Is there a way to achieve this? Please let me know if you need more details to clarify.
Thanks,
Aravind.
|