[xquery-talk] Global variables in XQuery
mhk at mhk.me.uk
Thu Oct 5 18:00:12 PDT 2006
> The easiest way is probably to simply use fn:trace(), the
> built-in debugging function. Extensions functions with
> side-effects are not much of an improvement over something
> like saxon:assign in my opinion.
The improvement is that it's far more visible to the user that they're in
fn:trace() doesn't explicitly give you a counter, though I guess with a
custom tracelistener you could make it work that way. But that's not very
different from an extension function either.
More information about the talk