Step through xsl file

Here should go questions about transforming XML with XSLT and FOP.
kevin2010
Posts: 3
Joined: Mon Jun 07, 2010 3:36 pm

Step through xsl file

Post 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
adrian
Posts: 2883
Joined: Tue May 17, 2005 4:01 pm

Re: Step through xsl file

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply