Santiago Pericas-Geertsen wrote:
I think your making your life more difficult :-). Just create the instance and call the methods without using an outer variable.
It is not that easy. Do you realize that in my example I will have to create the one desired variable and then 2 dummy variables to call the Java methods? I then have to get the value of the 2 dummy variables before I can actually use the variable that I want. I have to apply <xsl:value-of> to the dummy variable because of lazy evaluation. If I don't do that, then the variable I want will not have the Java methods applied yet. Am I making this more difficult or should there actually be a way to run some conditions as I create my variable just like in normal XSLT? Why can I not return a <xsl:copy-of> to the variable assignment either?
If there is no good answer I will take it to the developers list, but from what I can tell there has been little thought on how an imperative language like Java is going to intergrate effectivley with a functional language like XSLT. I have no safe place to run methods!
Thanks for your help everyone,
RRM
