XSLT stack overflow crashes oXygen 4.0
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 125
- Joined: Mon Jun 09, 2003 6:02 pm
- Location: Charlottesville, Virginia USA
XSLT stack overflow crashes oXygen 4.0
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.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi David,
We tried this stylesheet on Mac 10.3 with the latest updates and also on Windows. In both configurations it gives a stack overflow error but the application does not crash. For the debugger you can set an option that controls the maximum number of nested templates during a transformation. Oxygen will show an warning giving you the opportunity to stop that transformation. The option is located in the Options->Preferences -- XSLT/FO->Debugger dialog, see:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ugger.html
Best Regards,
George
We tried this stylesheet on Mac 10.3 with the latest updates and also on Windows. In both configurations it gives a stack overflow error but the application does not crash. For the debugger you can set an option that controls the maximum number of nested templates during a transformation. Oxygen will show an warning giving you the opportunity to stop that transformation. The option is located in the Options->Preferences -- XSLT/FO->Debugger dialog, see:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ugger.html
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service