Project

Profile

Help

Bug #4542

closed

xsl:iterate/xsl:on-completion is not executed when processing a singleton

Added by Michael Kay over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2020-05-05
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:
Platforms:

Description

Martin Honnen reports at https://saxonica.plan.io/boards/3/topics/7867?pn=1

Using Saxon 10 HE, the short test program

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="#all"
    version="3.0">
    
    <xsl:output method="xml" indent="yes" />
    
    <xsl:template match="/" name="xsl:initial-template">
        <xsl:iterate select="1">
            <xsl:param name="p1" as="xs:string" select="'test'"/>
            <xsl:on-completion>
                <completion>
                    <xsl:copy-of select="$p1"/>
                </completion>
            </xsl:on-completion>
        </xsl:iterate>
    </xsl:template>
    
</xsl:stylesheet>

only outputs <?xml version="1.0" encoding="UTF-8"?>. Shouldn't the xsl:on-completion be executed and output e.g. <completion>test</completion>?

Please register to edit this issue

Also available in: Atom PDF