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