[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Trying to use Docbook transforms with Saxon7


Subject: [xsl] Trying to use Docbook transforms with Saxon7
From: Bob Foster <bob@xxxxxxxxxx>
Date: Mon, 06 Oct 2003 00:53:46 -0500

chunker.xsl fails because it is looking for saxon:output, with the saxon namespace identified as xmlns:saxon="http://icl.com/saxon". Looking at the Saxon7 docs, I don't think just changing the namespace will bring joy. Here is a quote of the offending snippet.

<xsl:template name="make-relative-filename">
  <xsl:param name="base.dir" select="'./'"/>
  <xsl:param name="base.name" select="''"/>

  <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>
    <!-- other alternatives deleted -->
    <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>

I realize this isn't a lot of information; I am hoping someone has already been there, done that.

Bob Foster
http://www.xmlbuddy.com/



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread