Project

Profile

Help

Bug #6069 » document-function-regression-test.xsl

Conal Tuohy, 2023-06-09 07:30

 
<xsl:transform version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
Test of weird SaxonJS regression
-->
<xsl:param name="source-uri"/>
<xsl:template name="xsl:initial-template">
<!-- read the document -->
<xsl:variable name="source" select="doc($source-uri)"/>
<!-- transform the document with an identity mode -->
<xsl:variable name="phase-1">
<xsl:apply-templates mode="identity" select="$source"/>
</xsl:variable>
<!-- write the document -->
<xsl:result-document href="/tmp/regression-test-output.xml" method="xml" indent="no">
<xsl:copy-of select="$phase-1"/>
</xsl:result-document>
</xsl:template>
<xsl:mode name="identity" on-no-match="shallow-copy"/>
</xsl:transform>
(1-1/2)