Breakpoints not working in included files

Here should go questions about transforming XML with XSLT and FOP.
mark2457
Posts: 4
Joined: Thu Aug 09, 2018 8:43 pm

Breakpoints not working in included files

Post by mark2457 » Wed Aug 15, 2018 6:51 pm

I'm sure this used to work , but hasn;t worked fro at least the last few major releases (19+)

I have XSLT's included in the main file: <xsl:include href="Helpers.xsl"/>

Doesn't matter where I put breakpoints in the Helpers.xsl, the debugger never stops (even if I have already stepped into the file)

This is making the debugger unuseable and is the main reason I use OxygenXML

Radu
Posts: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: Breakpoints not working in included files

Post by Radu » Thu Aug 16, 2018 8:56 am

Hi Mark,

Here's what I tested on my side:

1) Created an XML document:

Code: Select all

<root>
<child></child>
</root>
2) Created a "main.xsl":

Code: Select all

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:include href="Helpers.xsl"/>
<xsl:template match="/">
<root2>
<xsl:apply-templates/>
</root2>
</xsl:template>
</xsl:stylesheet>
3) Created a "Helpers.xsl" next to the "main.xsl":

Code: Select all


<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">
<xsl:template match="child">
<someTag></someTag>
</xsl:template>
</xsl:stylesheet>
I created an XSLT transformation scenario in Oxygen for the "test.xml" with the "main.xsl" using Saxon 9 PE.
I used the "Debug Scenario" toolbar action and in the Debugger perspective I added a breakpoint inside the Helpers.xsl at the "<someTag>" line (line 7). I used the "Run (Shift F5)" toolbar action and the debugger stopped at that line.

Maybe you could try to also write on your side a minimal set of XML + XSLT example with which you can reproduce the problem on your side and either post it on this forum thread or send it to us (support@oxygenxml.com).

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

Post Reply