The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
extension-element-prefixes="xt"
version="1.0">
<xsl:import href="../html/xtchunk.xsl"/>
<xsl:include href="htmlhelp-common.xsl"/>
<xsl:template name="write.text.chunk">
<xsl:param name="filename" select="''"/>
<xsl:param name="method" select="'html'"/>
<xsl:param name="content" select="''"/>
<xsl:param name="encoding" select="'iso-8859-1'"/>
<!-- XT bug, if method is an AVT, it doesn't work -->
<!-- encoding doesn't work as an AVT either -->
<xt:document method="text" href="{$filename}" encoding="iso-8859-1">
<xsl:copy-of select="$content"/>
</xt:document>
</xsl:template>
</xsl:stylesheet>