Page 1 of 1

Debugger XSLT - Can't step over xsl:variable

Posted: Fri Nov 20, 2020 9:06 pm
by arkamy
Hi,

I can't step over xsl:variable during debugging. Instead the process runs to end.
FYI, it's working if we use saxon:assign instead.
Tested in oxygen 23.0 (not working too in oxygen 17->22)

Any ideas of the reason ?
Thanks

Re: Debugger XSLT - Can't step over xsl:variable

Posted: Tue Nov 24, 2020 6:09 pm
by adrian
Hi,

Note that Saxon performs numerous optimizations one of which is removing unreachable/unused code.

Is the variable used in any way? Try using the variable in some way, if that's the case.
If that's not the case, could you maybe provide an example of the context where this happens?

Regards,
Adrian