hgbook

annotate stylesheets/dtd-profile.xsl @ 886:8a2b0994ccd9

Make pdf looks more beautiful
author Dongsheng Song <dongsheng.song@gmail.com>
date Thu Oct 22 15:08:18 2009 +0800 (2009-10-22)
parents 23dc79421e06
children
rev   line source
bos@557 1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
bos@557 2 <xsl:import href="system-xsl/profiling/profile.xsl"></xsl:import>
bos@557 3
bos@557 4 <!-- For some reason, xsltproc omits the DTD from the file it
bos@557 5 outputs. Add a sensible one back in, because otherwise xmllint
bos@557 6 won't validate profiled documents. -->
bos@557 7
bos@557 8 <xsl:template match="/">
bos@557 9 <xsl:text disable-output-escaping="yes"><![CDATA[
bos@557 10 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
bos@557 11 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
bos@557 12 ]]></xsl:text>
bos@557 13 <xsl:apply-templates select="." mode="profile"/>
bos@557 14 </xsl:template>
bos@557 15 </xsl:stylesheet>