ec5d5dfbab6b3a63d1d941584d2d7e5d59a6f69f
[clinton/guile-figl.git] / upstream-man-pages / man3 / pdf / ogl_prep_xml.xsl
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:exsl="http://exslt.org/common"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 xmlns:ng="http://docbook.org/docbook-ng"
6 xmlns:db="http://docbook.org/ns/docbook"
7 xmlns:mml="http://www.w3.org/1998/Math/MathML"
8 exclude-result-prefixes="db ng exsl"
9 version='1.0'>
10
11 <!-- strip out the declaration from each file so that they can be -->
12 <!-- concatenated together into a single file -->
13
14 <xsl:output method="xml" omit-xml-declaration="yes"/>
15
16 <!-- It is important to use indent="no" here, otherwise verbatim -->
17 <!-- environments get broken by indented tags...at least when the -->
18 <!-- callout extension is used...at least with some processors -->
19
20 <xsl:output method="xml" indent="no"/>
21
22 <!-- the identity transform -->
23 <xsl:template match="@*|node()">
24 <xsl:copy>
25 <xsl:apply-templates select="@*|node()"/>
26 </xsl:copy>
27 </xsl:template>
28
29 <!-- replace the mml construct infinity with the unicode equivalent -->
30 <xsl:template match="mml:infinity">
31 <mml:mn>&#x221e;</mml:mn>
32 </xsl:template>
33
34 <!-- Strip out the section with the copyright as all copyrights -->
35 <!-- are at the front of the document -->
36 <xsl:template match="id('Copyright')">
37 </xsl:template>
38
39 </xsl:stylesheet>