<?xml version="1.0" encoding="utf-8"?>
<!--This file was created automatically by html2xhtml-->
<!--from the HTML stylesheets. Do not edit this file.-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="saxon xalanredirect lxslt" version="1.0">

<!-- This stylesheet does not work with XT. Use xtslices.xsl instead. -->

<xsl:include href="slices-common.xsl"/>

<!-- ==================================================================== -->
<!-- This is a workaround for a XalanJ1 bug in element-available. -->

<lxslt:component prefix="xalanredirect" elements="write">
  <lxslt:script lang="javaclass" src="org.apache.xalan.xslt.extensions.Redirect"/>
</lxslt:component>

<!-- ==================================================================== -->

<xsl:template name="write.chunk">
  <xsl:param name="filename" select="''"/>
  <xsl:param name="content" select="''"/>

  <xalanredirect:write file="{$filename}">
    <xsl:copy-of select="$content"/>
    <xsl:fallback>
      <saxon:output method="html" file="{$filename}" encoding="ISO-8859-1">
        <xsl:copy-of select="$content"/>
        <xsl:fallback>
          <xsl:copy-of select="$content"/>
        </xsl:fallback>
      </saxon:output>
    </xsl:fallback>
  </xalanredirect:write>
</xsl:template>

</xsl:stylesheet>
