Page 1 of 1
Step through xsl file
Posted: Mon Jun 07, 2010 3:41 pm
by kevin2010
I am debugging an xsl transformation. I can place break points in the source xml document and the process halts at the appropriate point. However, I have added breakpoints to the xsl script and the process runs to completion. I did notice that this also occurred with the xml doc when I was using the the Saxon parser, rather than xalan.
Any ideas?
Regards
Kevin
Re: Step through xsl file
Posted: Mon Jun 07, 2010 5:43 pm
by adrian
Hello,
As you know not all parsers are created equal and some will optimize the code up to a level where some breakpoints will be completely skipped.
e.g. If I set a breakpoint on a variable declaration:
Code: Select all
<xsl:variable name="myvar">
<xsl:value-of select="*[1]"/>
</xsl:variable>
) Saxon 6.5.5 and Xalan will stop there during debugging but Saxon-HE/PE/EE will not. There are some optimizations made and the code from the variable might be used in-line.
So my question is: Do some of the breakpoints work in the XSL? Or whatever you try and wherever you place them they refuse to work?
Regards,
Adrian