Debian Codegraph @

xsl/bridgehead.xsl

raw
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <!--############################################################################
5 XSLT Stylesheet DocBook -> LaTeX
6 ############################################################################ -->
7
8 <xsl:template match="bridgehead">
9 <xsl:param name="renderas" select="@renderas"/>
10 <xsl:choose>
11 <xsl:when test="$renderas='sect1' or $renderas='sect2' or $renderas='sect3'">
12 <xsl:text>&#10;\</xsl:text>
13 <xsl:if test="$renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if>
14 <xsl:if test="$renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if>
15 <xsl:text>section*{</xsl:text>
16 <xsl:apply-templates/>
17 <xsl:text>}</xsl:text>
18 <xsl:call-template name="label.id"/>
19 <xsl:text>&#10;</xsl:text>
20 </xsl:when>
21 <xsl:otherwise>
22 <xsl:text>&#10;\paragraph*{</xsl:text>
23 <xsl:apply-templates/>
24 <xsl:text>}</xsl:text>
25 <xsl:call-template name="label.id"/>
26 <xsl:text>&#10;&#10;\noindent&#10;</xsl:text>
27 </xsl:otherwise>
28 </xsl:choose>
29 </xsl:template>
30
31 </xsl:stylesheet>