OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: XSLT 1.1 chunk stylesheet.

The attached stylesheet does chunking with the XSLT 1.1 draft specs.
It's got a couple of workaround for xsltproc, but it might be useful for
someone. xsltproc doesn't currently support the doctype-public and
doctype-system attributes, I generated a partical patch (which supports
the attributes, but breaks single-file-redirected-stdout). Search the
xlst@gnome.org archives for
"[xslt] PATCH: xsl:document doctypePublic and doctypeSystem" if you are
interested in the partial patch.

<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] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC