blob: 307f2ec768f5deb4cc4582294976ddc7b25aec1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:d="http://docbook.org/ns/docbook"
xmlns:exsl="http://exslt.org/common"
exclude-result-prefixes="exsl d"
version="1.0">
<!-- Support for the DocBook Publishers extension -->
<xsl:template match="d:drama">
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:call-template name="anchor"/>
<xsl:call-template name="drama.titlepage"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="d:stagedir">
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:choose>
<xsl:when test="$make.clean.html = 0">
<xsl:attribute name="style">
<xsl:text>font-style:italic; font-weight:bold;</xsl:text>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="d:inlinestagedir">
<span>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:choose>
<xsl:when test="$make.clean.html = 0">
<xsl:attribute name="style">
<xsl:text>font-style:italic; font-weight:bold;</xsl:text>
</xsl:attribute>
<xsl:call-template name="anchor"/>
<xsl:text> [</xsl:text>
<xsl:apply-templates/>
<xsl:text>] </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:template>
<xsl:template match="d:linegroup">
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:if test="$make.clean.html = 0">
<xsl:attribute name="style">
<xsl:text>width: 100%; display: table; margin-top: 5px;</xsl:text>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="anchor"/>
<div>
<xsl:if test="$make.clean.html = 0">
<xsl:attribute name="style">display: table-row;</xsl:attribute>
</xsl:if>
<div>
<xsl:if test="$make.clean.html = 0">
<xsl:attribute name="style">display: table-cell; width: 15%</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="d:speaker"/>
</div>
<div>
<xsl:if test="$make.clean.html = 0">
<xsl:attribute name="style">display: table-cell; width: 85%</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="*[not(self::d:speaker)]"/>
</div>
</div>
</div>
</xsl:template>
<xsl:template match="d:speaker">
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="d:line">
<div>
<xsl:call-template name="common.html.attributes"/>
<xsl:call-template name="id.attribute"/>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="d:drama/d:title"/>
<xsl:template match="d:poetry/d:title"/>
<xsl:template match="d:dialogue/d:title"/>
</xsl:stylesheet>
|