Debian Codegraph @

xsl/para.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
9 <xsl:template match="para|simpara">
10 <xsl:text>&#10;</xsl:text>
11 <xsl:call-template name="label.id"/>
12 <xsl:apply-templates/>
13 <xsl:text>&#10;</xsl:text>
14 </xsl:template>
15
16 <xsl:template match="formalpara">
17 <xsl:text>&#10;{\bf </xsl:text>
18 <xsl:call-template name="normalize-scape">
19 <xsl:with-param name="string" select="title"/>
20 </xsl:call-template>
21 <xsl:text>} </xsl:text>
22 <xsl:call-template name="label.id"/>
23 <xsl:apply-templates/>
24 <xsl:text>&#10;</xsl:text>
25 <xsl:text>&#10;</xsl:text>
26 </xsl:template>
27
28 <xsl:template match="formalpara/title"></xsl:template>
29
30
31 <!--==========================================================================
32 | Especial Cases Do not add Linefeed
33 +============================================================================-->
34
35 <xsl:template match="listitem/para|step/para|entry/para
36 |listitem/simpara|step/simpara|entry/simpara">
37 <xsl:if test="preceding-sibling::*">
38 <xsl:text>&#10;</xsl:text>
39 </xsl:if>
40 <xsl:call-template name="label.id"/>
41 <xsl:apply-templates/>
42 <xsl:text>&#10;</xsl:text>
43 </xsl:template>
44
45 <xsl:template match="textobject/para"> <xsl:apply-templates/> </xsl:template>
46 <xsl:template match="question/para"> <xsl:apply-templates/> </xsl:template>
47 <xsl:template match="answer/para"> <xsl:apply-templates/> </xsl:template>
48
49 <!--===============
50 | Miscellaneous
51 +================= -->
52
53 <xsl:template match="ackno">
54 <xsl:text>&#10;</xsl:text>
55 <xsl:apply-templates/>
56 <xsl:text>&#10;</xsl:text>
57 </xsl:template>
58
59 </xsl:stylesheet>