2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
4
<!--############################################################################
5
XSLT Stylesheet DocBook -> LaTeX
6
############################################################################ -->
8
<xsl:template match="sgmltag">
9
<xsl:param name="class">
11
<xsl:when test="@class">
12
<xsl:value-of select="normalize-space(@class)"/>
14
<xsl:otherwise>element</xsl:otherwise>
19
<xsl:when test="$class='attribute'">
20
<xsl:call-template name="inline.charseq"/>
22
<xsl:when test="$class='attvalue'">
23
<xsl:call-template name="inline.monoseq"/>
25
<xsl:when test="$class='element'">
26
<xsl:call-template name="inline.monoseq"/>
28
<xsl:when test="$class='endtag'">
29
<xsl:call-template name="inline.monoseq">
30
<xsl:with-param name="content">
31
<xsl:text>$<$/</xsl:text>
32
<xsl:apply-templates/>
33
<xsl:text>$>$</xsl:text>
37
<xsl:when test="$class='genentity'">
38
<xsl:call-template name="inline.monoseq">
39
<xsl:with-param name="content">
40
<xsl:text>\&</xsl:text>
41
<xsl:apply-templates/>
42
<xsl:text>;</xsl:text>
46
<xsl:when test="$class='numcharref'">
47
<xsl:call-template name="inline.monoseq">
48
<xsl:with-param name="content">
49
<xsl:text>\&\#</xsl:text>
50
<xsl:apply-templates/>
51
<xsl:text>;</xsl:text>
55
<xsl:when test="$class='paramentity'">
56
<xsl:call-template name="inline.monoseq">
57
<xsl:with-param name="content">
58
<xsl:text>\%</xsl:text>
59
<xsl:apply-templates/>
60
<xsl:text>;</xsl:text>
64
<xsl:when test="$class='pi'">
65
<xsl:call-template name="inline.monoseq">
66
<xsl:with-param name="content">
67
<xsl:text>$<$?</xsl:text>
68
<xsl:apply-templates/>
69
<xsl:text>?$>$</xsl:text>
73
<xsl:when test="$class='xmlpi'">
74
<xsl:call-template name="inline.monoseq">
75
<xsl:with-param name="content">
76
<xsl:text>$<$?</xsl:text>
77
<xsl:apply-templates/>
78
<xsl:text>?$>$</xsl:text>
82
<xsl:when test="$class='starttag'">
83
<xsl:call-template name="inline.monoseq">
84
<xsl:with-param name="content">
85
<xsl:text>$<$</xsl:text>
86
<xsl:apply-templates/>
87
<xsl:text>$>$</xsl:text>
91
<xsl:when test="$class='emptytag'">
92
<xsl:call-template name="inline.monoseq">
93
<xsl:with-param name="content">
94
<xsl:text>$<$</xsl:text>
95
<xsl:apply-templates/>
96
<xsl:text>/$>$</xsl:text>
100
<xsl:when test="$class='sgmlcomment'">
101
<xsl:call-template name="inline.monoseq">
102
<xsl:with-param name="content">
103
<xsl:text>$<$!$--$</xsl:text>
104
<xsl:apply-templates/>
105
<xsl:text>$-->$</xsl:text>
110
<xsl:call-template name="inline.charseq"/>