We're not using this forum any more: could you move the discussion to saxonica.plan.io please?
It's hard to say what you are doing wrong, because you haven't said in any detail what you are doing. In general, though, functions with side-effects are always problematic in a functional language.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All. I tried to do XSLT transform one XML file to another XML used XSLT generated in Altova Map Force.
I solved problem describer in this topic by implementing processor.registerExtensionFunction.
http://sourceforge.net/p/saxon/discussion/94027/thread/1329e60d/?limit=25#54c9
But, my functions called only once. In output XML a see my generated numbers but always the same number.
What i do wrong, please help?
We're not using this forum any more: could you move the discussion to saxonica.plan.io please?
It's hard to say what you are doing wrong, because you haven't said in any detail what you are doing. In general, though, functions with side-effects are always problematic in a functional language.