can handle mixed languages.
Added omit-xml-declaration to get around the standalone
attribute in the XML declaration not being permitted
in system entities.
<xsl:call-template name="write.chunk">
<xsl:with-param name="filename" select="$targets.filename"/>
<xsl:with-param name="method" select="'xml'"/>
- <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
+ <xsl:with-param name="encoding" select="'utf-8'"/>
+ <xsl:with-param name="omit-xml-declaration" select="'yes'"/>
<xsl:with-param name="indent" select="'yes'"/>
<xsl:with-param name="quiet" select="0"/>
<xsl:with-param name="content">