xsltproc, docbook, chunked html output, and doctype

i spent some time earlier this weeking trying to get xsltproc convert docbook to customized chunked html using the docbook xsl stylesheets, but could not figure out how to get it to not output a <!DOCTYPE> with every page. (i'm generating pages that include php calls to generate the header and footer.)

« "just say no" with russian dressingcharity, june 2003 »

comments

Hi,

you might try this customization layer:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
xmlns:saxon="http://icl.com/saxon"
xmlns:lxslt="http://xml.apache.org/xslt"
xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
xmlns:exsl="http://exslt.org/common"
exclude-result-prefixes="#default">

<xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets-1.60.1/xhtml/chunk.xsl"/>

<xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
<xsl:param name="chunker.output.standalone" select="'no'"/>
<xsl:param name="chunker.output.doctype-public" select="''"/>
<xsl:param name="chunker.output.doctype-system" select="''"/>
<xsl:param name="chunker.output.media-type" select="''"/>

</xsl:stylesheet>

Lars Trieloff
http://trieloff.net/docbook/archive/000366.html

» Lars Trieloff (link) » june 29, 2003 11:09am

add a comment

remember you