hgbook
diff stylesheets/dtd-profile.xsl @ 1108:ddd97fac3582
2.8.3 zh translated
author | Zhaoping Sun <zhaopingsun@gmail.com> |
---|---|
date | Wed Dec 23 23:16:32 2009 -0500 (2009-12-23) |
parents | 23dc79421e06 |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/stylesheets/dtd-profile.xsl Wed Dec 23 23:16:32 2009 -0500 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>