This is a limitation of the version of docbook that you are using. I was under the impression that there was a version of docbook that understood the XSLT 2.0 xsl:result-document instruction which has replaced saxon:output, but you will have to look for that on the docbook site.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of kralik
Sent: 21 April 2006 00:44
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Chunk problem

I have a problem with creating chunked HTML from mydocbook1.xml file (http://laduska.ic.cz/diplomka/docbook1.xml) and docbook-xsl-1.69.1 styles in Saxon 8.7.1. Creating of one-page HTML is OK. FO files are OK too.
But when I try to creat chunked HTML, following error comes:

Don't know how to chunk with SAXON 8.7.1 from Saxonica
Processing terminated by xsl:message at line 45 in chunker.xsl


My docbook1.xml is valid.

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>
===================
chunker.xsl line 45
===================
  <xsl:choose>
    <!-- put Saxon first to work around a bug in libxslt -->
    <xsl:when test="element-available('saxon:output')">
      <!-- Saxon doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:when test="element-available('exsl:document')">
      <!-- EXSL document does make the chunks relative, I think -->
      <xsl:choose>
        <xsl:when test="count(parent::*) = 0">
          <xsl:value-of select="concat($base.dir,$base.name)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$base.name"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when>
    <xsl:when test="element-available('xalanredirect:write')">
      <!-- Xalan doesn't make the chunks relative -->
      <xsl:value-of select="concat($base.dir,$base.name)"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:message terminate="yes">
        <xsl:text>Don't know how to chunk with </xsl:text>
        <xsl:value-of select="system-property('xsl:vendor')"/>
      </xsl:message>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>


Any idea, where could be resolution?

Thanks, Pavel Tyl

View this message in context: Chunk problem
Sent from the saxon-help forum at Nabble.com.