Note that, in general, XSLT and XPath do not make any promises about order of evaluation. Extensions _may_ be called multiple times, or in an order which you didn't expect. The latter can be controlled by ensuring that the later extension takes as an argument the value produced by the earlier extension, but for the former you're sorta at the mercy of the processor and optimizer.
In general, if you're writing stateful extensions, you're probably doing something wrong... ______________________________________ "... Three things see no end: A loop with exit code done wrong, A semaphore untested, And the change that comes along. ..." -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish ( http://www.ovff.org/pegasus/songs/threes-rev-11.html)