Project

Profile

Help

Support #4396 » bug.xsl

David Priest, 2019-11-26 19:52

 
<xsl:transform
expand-text="yes"
extension-element-prefixes="ixsl"
version="3.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
xmlns:js="http://saxonica.com/ns/globalJS"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template
name="xsl:initial-template">
<xsl:apply-templates
select="ixsl:page()" />
</xsl:template>

<xsl:template
match="div[@id='shortformEmptyDiv']">
<xsl:message>Matched shortformEmptyDiv</xsl:message>
<xsl:result-document
href="?."
method="ixsl:replace-content">
<p>Here is some shortformEmptyDiv content.</p>
</xsl:result-document>
</xsl:template>

<xsl:template
match="div[@id='longformEmptyDiv']">
<xsl:message>Matched longformEmptyDiv</xsl:message>
<xsl:result-document
href="?."
method="ixsl:replace-content">
<p>Here is some longformEmptyDiv content.</p>
</xsl:result-document>
</xsl:template>

<xsl:template
match="div[@id='disappearingAct']">
<xsl:message>Matched disappearingAct</xsl:message>
<xsl:result-document
href="?."
method="ixsl:replace-content">
<p>Here is some disappearingAct content.</p>
</xsl:result-document>
</xsl:template>
</xsl:transform>
(2-2/2)