Improve variables display in XSLT debugger
Are you missing a feature? Request its implementation here.
-
- 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.
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.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service