FWIW, I've managed to get this working by using <saxon:assign but I'm not comfortable with that since the documentation indicates this may be removed.

On 11/22/2013 11:17 AM, Steve Carton wrote:
I have a java XSLT extension function which I need to call to update certain state information. It has no return (public void add(...))

How do I make a call to this function? Since it isn't returning anything, it makes no sense to put it in an xsl:value-of. I tried assigning it to a variable, but it looks like variables don't actually get created until they are being used? The only way I got this to work was to then emit the (empty) variable in a comment in the output. But I don't need a bunch of empty comments in the output.

Is there another way in either Saxon or XSLT 2 in general to accomplish this? Is there a trick to make the extension function call at the time of variable assignment instead of use?

--
Steve   Carton


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 

--
Steve