Bug: Invalid XPath syntax in XSL:for-each hangs debugger

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Chris Maloney

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.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

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
Post Reply