Improve variables display in XSLT debugger

Are you missing a feature? Request its implementation here.
jokester01au
Posts: 64
Joined: Tue May 17, 2005 9:16 am

Improve variables display in XSLT debugger

Post by jokester01au »

I find it maddening when debugging XSLT when the processor is paused on an instruction, and I cannot examine variables which "should" have been processed before that instruction.

I realise that the processor (I am using saxon 8b) executes variable descriptions in a lazy fashion, but when trying to debug that behaviour isn't very helpful.

I have found that I can get around the lazy execution issue by putting a variable statement at the end of each template that makes a sequence out of all the other variables I have used, ie select="$this, $that, $theOther". Even though this workaround variable is the last statement in the template/function, and so is unused, just having it there seems to be enough to force saxon to evaluate its select statement and hence all of the other variables.

This is obviously a pretty poor workaround, particularly when you have a large number of templates/functions, and it would be lovely if oxygen were to implictly put in my dummy select statement to force the variables the be executed so that I can examine them.
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu »

Hi,

The improvement to force evaluation of the variable values in Oxygen is already in work in progress.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply