Troubles debugging in XSLTC (Compiled XSLT) mode

Here should go questions about transforming XML with XSLT and FOP.

Troubles debugging in XSLTC (Compiled XSLT) mode

Post by Guest » Mon Nov 08, 2004 10:30 pm


Here is my setup:

JAXP XSLT transformer value is org.apache.xalan.xsltc.trax.TransformerFactoryImpl

Engine: Xalan 2.6.2

Problem: whenever I'm trying to step into the code like this

<xsl:apply-templates select="$nodesetEntryElements" mode="createBaseFrame">
<xsl:with-param name="titlePattern" select="$titlePattern"/>
<xsl:with-param name="descriptionPattern" select="$descriptionPattern"/>

the debugger behaves like I hit Run to the end instead of step into. It seems like apply-templates statement is key here. Debugger steps into call-templates just fine.

Is XSLTC debugging fully supported by Oxygen (including apply-templates tags)?

Thank you,

Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Tue Nov 09, 2004 1:12 pm

Hi Boris,

The XSLT Debugger works with Xalan (not XSLTC).
The problem may be that no template matches your apply-templates.
If you still have problems it will help if you can post a cut down sample that can be used to reproduce the problem.

Best Regards,

Posts: 5
Joined: Mon Nov 08, 2004 10:20 pm

Post by Boris » Tue Nov 09, 2004 10:43 pm

Thank you for the reply, George.

I forgot to mention that all my XSLs work perfectly in non-XSLTC mode both under debugger and outside. The problem only happens when I turn on "compiled" mode.

I'm trying to locate the "bad" spot in XSLs that cause the failure with the help of the Oxygen's debugger...

Our XSLs are very complex and it will be very difficult for me extract just the relevant piece. As I said above, I'm looking for that "culprit" code myself.

I didn't quite understand your answer: is XSLTC mode supported by Oxygen debugger or not?



Posts: 5
Joined: Mon Nov 08, 2004 10:20 pm

BUG: <xsl:with-param> causes debug abort

Post by Boris » Wed Nov 10, 2004 2:08 am

I've narrowed it down and have data for the bug reproduction.

1. Set transformer to org.apache.xalan.xsltc.trax.TransformerFactoryImpl
2. Switch to debug perspective
3. Pick Xalan as your engine
4. Prepare your data as below:

<xsl:stylesheet version = '1.0'

<xsl:template match="/">
<xsl:for-each select="//number">
<xsl:when test="text() mod 2">
<xsl:apply-templates select=".">
<xsl:with-param name="type">odd</xsl:with-param>

<xsl:apply-templates select="."/>

<xsl:template match="number">
<xsl:param name="type">even</xsl:param>
<xsl:value-of select="."/>
<xsl:text> (</xsl:text>
<xsl:value-of select="$type"/>





Description: java.lang.NullPointerException when trying to StepInto the bold line in the XSL sample above and execution is aborted.

Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Wed Nov 10, 2004 4:53 pm

Hi Boris,

The JAXP setting has no effect for the debugger. The debugger supports Xalan 2.5.1, Saxon 6.5.3 and SaxonB 8.1.1.

I tried debugging your files with all the tree XSLT processors above but everything went fine. Please contact us at in order to give you instructions to enable the application logging so we can get more details.

Best Regards,

Post Reply