bug with xsl:document? (was Re: [xslt] xsltproc and multiple file output.)

----- Original Message -----
From: "Daniel Veillard" <veillard@redhat.com>
To: <xslt@gnome.org>
Sent: Sunday, May 27, 2001 12:19 AM
Subject: Re: [xslt] xsltproc and multiple file output.

> On Sun, May 27, 2001 at 12:08:02AM +1000, Robert Collins wrote:
>   Multiple file output are extensions to the standard XSLT-1.0 .
> implements 4 syntaxes, the Xalan, XT, and Saxon's processors ones. But
> the one I recommend, is  the 4th one, from the XSLT-1.1 working draft.
>    http://www.w3.org/TR/xslt11/#multiple-output
>   there is an example in the distribution in the tests/multiple

I've created an xsl-1.1 chunking stylesheet for the docbook styles
(attached here as it's tiny). It works fine, with one caveat...

Does libxslt support the
doctype-system=".." >
attributes from the XLST 1.1 spec?

I've tracked back into htmlDocContentDumpOutput without seeing where
those attributes are handled. I'm about to generate a patch, but I
figure it would be good to know if I'm just doing something wrong :]

Also there is an error spat out about not supporting post-1.0 features,
even though xsl:document works. (Which is why I have the version as 1.0,
not 1.1 as it should be).

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

<xsl:include href="docbookxsl/html/chunk-common.xsl"/>

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

  <xsl:value-of select="concat($base.dir,$base.name)"/>

<xsl:template name="write.chunk">
  <xsl:param name="filename" select="''"/>
  <xsl:param name="method" select="'html'"/>
  <xsl:param name="encoding" select="'ISO-8859-1'"/>
  <xsl:param name="content" select="''"/>

  <xsl:document href="{$filename}"
		doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
    <!-- method was {$method} but xlstproc spits the dummy -->
    <!-- encoding="{$encoding}"> -->
    <xsl:copy-of select="$content"/>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]