hgbook

annotate xsl/dtd-profile.xsl @ 557:23dc79421e06

Add XSL stylesheets
author Bryan O'Sullivan <bos@serpentine.com>
date Mon Feb 09 23:04:31 2009 -0800 (2009-02-09)
parents
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>