Actions
Bug #6428
closedOutput of xsl:on-non-empty changes when using TraceListener
Start date:
2024-05-16
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
Java
Description
When using the Saxon TraceListener I get different output from xsl:on-non-empty compared to when not using the TraceListener. Test case on-non-empty-008.xsl shows the issue:
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<out>
<xsl:for-each select="/*/thing">
<item><xsl:value-of select="name()"/></item>
</xsl:for-each>
<xsl:on-non-empty>
<p>There are some things</p>
</xsl:on-non-empty>
</out>
</xsl:template>
</xsl:stylesheet>
The data is:
<doc> <item>a</item> <item>b</item> <item>c</item> </doc>
Without the TraceListener configured the result is:
<out/>
With the TraceListener configured the result is:
<out>
<p>There are some things</p>
</out>
With the TraceListener and default optimisation setting I also get the message SXWN9029.
With the TraceListener and no optimisation, -opt:0, I don't get the message SXWN9029 but do still get the wrong output.
Adrian
Please register to edit this issue
Actions