Doc: Shifting down HTML heading tags by one.
[shapes.git] / doc / parts / formats / man.xsl
blobf516d38304d20ac2a807b5ae34da38ec8b9fcfcc
1 <?xml version="1.0" encoding="UTF-8"?>
3 <!-- This file is part of Shapes. -->
4 <!-- -->
5 <!-- Shapes is free software: you can redistribute it and/or modify -->
6 <!-- it under the terms of the GNU General Public License as published by -->
7 <!-- the Free Software Foundation, either version 3 of the License, or -->
8 <!-- any later version. -->
9 <!-- -->
10 <!-- Shapes is distributed in the hope that it will be useful, -->
11 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
12 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
13 <!-- GNU General Public License for more details. -->
14 <!-- -->
15 <!-- You should have received a copy of the GNU General Public License -->
16 <!-- along with Shapes. If not, see <http://www.gnu.org/licenses/>. -->
17 <!-- -->
18 <!-- Copyright 2008 Henrik Tidefelt -->
20 <xsl:stylesheet version="2.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
23 <xsl:template match="str-PDF">PDF</xsl:template>
24 <xsl:template match="str-HTML">HTML</xsl:template>
25 <xsl:template match="str-XML">XML</xsl:template>
26 <xsl:template match="str-SVG">SVG</xsl:template>
27 <xsl:template match="str-PostScript">PostScript</xsl:template>
28 <xsl:template match="str-Shapes">Shapes</xsl:template>
29 <xsl:template match="str-TeX">TeX</xsl:template>
30 <xsl:template match="str-LaTeX">LaTeX</xsl:template>
31 <xsl:template match="str-pdfLaTeX">pdfLaTeX</xsl:template>
32 <xsl:template match="str-MetaPost">MetaPost</xsl:template>
33 <xsl:template match="str-UTF-8">UTF-8</xsl:template>
34 <xsl:template match="str-2D">2D</xsl:template>
35 <xsl:template match="str-3D">3D</xsl:template>
37 <xsl:template match="char-cdot">*</xsl:template>
38 <xsl:template match="char-bullet">#</xsl:template>
39 <xsl:template match="char-str-open">("</xsl:template>
40 <xsl:template match="char-str-close">")</xsl:template>
42 <xsl:template match="physical"><xsl:apply-templates select="scalar" /><xsl:apply-templates select="unit" /></xsl:template>
43 <xsl:template match="sci-fmt[@mantissa,@exp]"><xsl:value-of select="@mantissa" />e<xsl:value-of select="@exp" /></xsl:template>
44 <xsl:template match="quote">"<xsl:apply-templates />"</xsl:template>
46 <xsl:template match="tol-param"><xsl:text>
47 .ensure-line-break.B </xsl:text><xsl:value-of select="@name" /><xsl:text>
48 .ensure-line-break</xsl:text></xsl:template>
50 <xsl:template match="filename"><xsl:text>
51 .ensure-line-break.I </xsl:text><xsl:value-of select="." /><xsl:text>
52 .ensure-line-break</xsl:text></xsl:template>
54 <xsl:template match="p"><xsl:apply-templates/><xsl:text>
56 </xsl:text></xsl:template>
58 <xsl:template match="command-line"><xsl:text>
59 .br
60 .ensure-line-break</xsl:text><xsl:apply-templates/><xsl:text>
62 </xsl:text></xsl:template>
64 </xsl:stylesheet>