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