Bug: Invalid XPath syntax in XSL:for-each hangs debugger
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Bug: Invalid XPath syntax in XSL:for-each hangs debugger
Post by Chris Maloney »
Oxygen V4.1
Xalan 2.5.1
Using the following (invalid) code:
<xsl:for-each select="field[not(identity)">
<xsl:text>Output Something...</xsl:text>
</xsl:for-each>
Note missing ']' in XPath.
Generates a Stack Overflow and causes Oxygen to eat large quantities of memory until a out of memory error occurs.
Obviously, correcting the XPath statement resolves the problem but it shouldn't be causing a hang.
Xalan 2.5.1
Using the following (invalid) code:
<xsl:for-each select="field[not(identity)">
<xsl:text>Output Something...</xsl:text>
</xsl:for-each>
Note missing ']' in XPath.
Generates a Stack Overflow and causes Oxygen to eat large quantities of memory until a out of memory error occurs.
Obviously, correcting the XPath statement resolves the problem but it shouldn't be causing a hang.
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi Chris,
I'm affraid we cannot control that, the SOE appears inside Xalan code when we try to create a Transformer object out of the stylesheet document. Anyway on my machine it does not fell like a hang, it takes some time to create the transformer then the error is reported in the Errors area and Oxygen remains usable. Saxon behaves better on this type of errors, if your stylesheet is not Xalan dependent you may consider using Saxon instead.
Best Regards,
George
I'm affraid we cannot control that, the SOE appears inside Xalan code when we try to create a Transformer object out of the stylesheet document. Anyway on my machine it does not fell like a hang, it takes some time to create the transformer then the error is reported in the Errors area and Oxygen remains usable. Saxon behaves better on this type of errors, if your stylesheet is not Xalan dependent you may consider using Saxon instead.
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