bug with xsl:document? (was Re: [xslt] xsltproc and multiple file output.)
- From: "Robert Collins" <robert collins itdomain com au>
- To: <xslt gnome org>
- Subject: bug with xsl:document? (was Re: [xslt] xsltproc and multiple file output.)
- Date: Sun, 27 May 2001 22:07:57 +1000
----- 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 .
libxslt
> 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
directory,
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
<xsl:document
doctype-public=".."
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).
Rob
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<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>
<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}"
method="html"
encoding="ISO-8859-1"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<!-- method was {$method} but xlstproc spits the dummy -->
<!-- encoding="{$encoding}"> -->
<xsl:copy-of select="$content"/>
</xsl:document>
</xsl:template>
</xsl:stylesheet>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]