hgbook
diff stylesheets/dtd-profile.xsl @ 897:e917517d1ef9
White background not needed for body if content is wrapped into .chapter.
author | dukebody <dukebody@gmail.com> |
---|---|
date | Mon Oct 26 12:43:43 2009 +0100 (2009-10-26) |
parents | 23dc79421e06 |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/stylesheets/dtd-profile.xsl Mon Oct 26 12:43:43 2009 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'> 1.5 + <xsl:import href="system-xsl/profiling/profile.xsl"></xsl:import> 1.6 + 1.7 + <!-- For some reason, xsltproc omits the DTD from the file it 1.8 + outputs. Add a sensible one back in, because otherwise xmllint 1.9 + won't validate profiled documents. --> 1.10 + 1.11 + <xsl:template match="/"> 1.12 + <xsl:text disable-output-escaping="yes"><![CDATA[ 1.13 +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 1.14 + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> 1.15 + ]]></xsl:text> 1.16 + <xsl:apply-templates select="." mode="profile"/> 1.17 + </xsl:template> 1.18 +</xsl:stylesheet>