• skip to sidebar
  • skip to search box

trainedmonkey

by Jim Winstead Jr.

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.)

» Friday, June 27, 2003 @ 12:14pm » 1 comment, add yours
« "just say no" with russian dressing • charity, 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&quot; version='1.0' xmlns="http://www.w3.org/TR/xhtml1/transitional&quot; xmlns:saxon="http://icl.com/saxon&quot; xmlns:lxslt="http://xml.apache.org/xslt&quot; xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" xmlns:exsl="http://exslt.org/common&quot; 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) » Sunday, June 29, 2003 @ 2:09pm

Add a comment

Sorry, comments on this post are closed.

  • Home
  • About
  • Archive
  • Bookmarks
  • Photos
  • Projects
  • GitHub
  • @jimw@mefi.social

Dedicated to the public domain by Jim Winstead Jr.