hgbook

diff xsl/dtd-profile.xsl @ 618:2b193ab0df9a

Ignore more
author Bryan O'Sullivan <bos@serpentine.com>
date Tue Mar 31 22:56:37 2009 -0700 (2009-03-31)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xsl/dtd-profile.xsl	Tue Mar 31 22:56:37 2009 -0700
     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>