Martin -

Yes, that works. I should have mentioned that I had tried that as well as emitting a comment. The problem is, in a production setting, this will fill up a log with messages of no meaning.

Steve


On 11/22/2013 12:25 PM, Martin Honnen wrote:
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?
I wonder whether
   <xsl:message select="foo:bar()"/>
suffices to ensure the function foo:bar is called and does on the other 
hand not emit anything to the result tree.


------------------------------------------------------------------------------
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