Kai --

You'll usually get better support if you send this mail to the mailing
list.  Current versions of XalanJ use "lazy evaluation" of variables.
The chances are that voidMethod won't get called unless $foo is
referenced somewhere since evaluation is postponed until the time that
the variable is referenced.

I don't really have a preference as to how you invoke an extension
function with a void return value.  Any way that works seems fine to me.

Gary

> -----Original Message-----
> From: Kai Ojansuu [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 09, 2001 4:42 AM
> To: [EMAIL PROTECTED]
> Subject: Extension functions which return void?
> 
> 
> I've been experiencing with the extension mechanism and have a little
> question:
> I have some java methods which don't return a value.
> Is there any "one and only right way" of calling them when 
> using abbreviated syntax?
> 
> I've used a dummy variable:
> <xsl:variable name="foo" select="java:voidMethod($myClass,123)"/>
> 
> Another way could be:
> <xsl:value of select="java:..."/>
> But it's a little bit misleading at some sense.
> 
> Sorry about this direct approach.
> 
> Kai Ojansuu
> 
> 

Reply via email to