Project

Profile

Help

Bug #4607 » bug4607.xsl

Debbie Lockett, 2020-07-17 23:00

 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:js="http://saxonica.com/ns/globalJS"
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
exclude-result-prefixes="xs"
extension-element-prefixes="ixsl" version="3.0">
<xsl:output method="xml"/>
<!-- Run-time error from adding map to the principal result tree
when output method is specified as xml, xhtml, html, or text -->

<xsl:template name="main">
<p>Unused element</p>
<xsl:map-entry key="'a'" select="'b'"/>
<xsl:result-document href="#target" method="ixsl:replace-content">
<p>New paragraph</p>
</xsl:result-document>
</xsl:template>

</xsl:stylesheet>
(2-2/4)