XSLT stack overflow crashes oXygen 4.0
Posted: Sun May 02, 2004 5:54 am
The following applies to the new oXygen 4.0 release for Mac OS X.
I stupidly created an XSLT script with the following code:
This creates an infinite loop, and therefore a stack overflow in the Java parser. If this code is run in the XSLT debugger, it produces an error message "class java.lang.StackOverflowError". But if it is run from the XML editor as a Transformation, oXygen crashes (both for the Saxon and the Xalan transformer).
Obviously, one solution is not to run stupid code.
But if oXygen could trap this error and respond gracefully that would be ideal.
I stupidly created an XSLT script with the following code:
Code: Select all
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="."></xsl:apply-templates>
</xsl:copy>
</xsl:template>
Obviously, one solution is not to run stupid code.

But if oXygen could trap this error and respond gracefully that would be ideal.