annotate DOCS/xml/xsl/ldp-html-common.xsl @ 16063:d233522e6f59

synced with 1.85
author gabrov
date Fri, 22 Jul 2005 23:34:26 +0000
parents 62c5a17038ba
children 0f1b5b68af32
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9675
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
1 <?xml version='1.0'?>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
3 version='1.0'
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
4 xmlns="http://www.w3.org/TR/xhtml1/transitional"
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
5 exclude-result-prefixes="#default"
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
6 >
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
7
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
8 <!-- $Id -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
9
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
10 <!-- Experimental stylesheet by Dan York
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
11 This is an attempt to replicate the customizations done in ldp.dsl
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
12 Each customization in ldp.dsl is listed in the order in which it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
13 appears (in ldp.dsl) with the corresponding XSLT template or setting
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
14 below it. Where there is no XSLT code below an item, that particular
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
15 customization of ldp.dsl is not yet supported here. Some additional
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
16 options and features have been added and are noted as not being in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
17 ldp.dsl. The work on this stylesheet began 5 Jul 2001. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
18
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
19 <!-- Note that this file, 'ldp-html-common.xsl', is NOT intended to be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
20 called directly. Instead, you should call either of two stylesheets:
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
21 'ldp-html.xsl' or 'ldp-html-chunk.xsl'. The former generates a SINGLE
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
22 HTML file, while the latter performs "chunking" to generate MULTIPLE
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
23 HTML files. Both of those files import the appropriate Norman Walsh
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
24 stylesheet and then import this customization layer. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
25
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
26 <!-- NOT IN LDP.DSL - This stylesheet supports the additional use of the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
27 "role" and "condition" attributes to the <author> tag. The XSLT template
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
28 is listed later in the stylesheet, but the text lables are listed
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
29 here in order to make localization of the stylesheet easier. Note
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
30 that spaces *are* significant in the value, so you should have a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
31 space after the colon. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
32
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
33 <xsl:variable name="maintainerlabel">Maintainer: </xsl:variable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
34 <xsl:variable name="authorlabel">Author: </xsl:variable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
35
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
36
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
37 <!-- NOT IN LDP.DSL
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
38 Creates header content in all generated HTML files -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
39
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
40 <xsl:template name="user.head.content">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
41 <xsl:param name="node" select="."/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
42 <meta name="generator" content="Experimental LDP.XSL $Revision$"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
43 <xsl:text>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
44 </xsl:text>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
45 <xsl:comment> Generated by LDP XSLT customization layer
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
46 based on Norman Walsh's DocBook XSL stylesheets.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
47 More information at http://www.linuxdoc.org/ </xsl:comment>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
48 <xsl:text>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
49 </xsl:text>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
50
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
51 </xsl:template>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
52
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
53 <!-- declare-characteristic preserve-sdata?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
54 No longer appears necessary as it is a JadeTex issue. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
55
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
56 <!-- generate-legalnotice-link?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
57 Not currently supported in Norm's XSL stylesheets. Logged
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
58 at SourceForge as a bug. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
59
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
60 <!-- Should graphics be used for admonitions (notes, warnings)? 0 or 1 -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
61 <xsl:param name="admon.graphics" select="0"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
62
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
63 <!-- If using admon graphics (1 above), what is path to graphics?
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
64 Should be the path relative to your document and MUST end with
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
65 a trailing slash. Also, this parameter needs to be on a
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
66 single line. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
67 <xsl:param name="admon.graphics.path">images/</xsl:param>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
68
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
69
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
70 <!-- Make funcsynopsis look pretty -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
71 <xsl:param name="funcsynopsis.decoration" select="1" doc:type="boolean"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
72
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
73 <!-- Extension for HTML files -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
74 <xsl:param name="html.ext" select="'.html'"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
75
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
76 <!-- Generate TOCs for book, article, part -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
77 <xsl:param name="generate.book.toc" select="1" doc:type="boolean"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
78 <xsl:param name="generate.article.toc" select="1" doc:type="boolean"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
79 <xsl:param name="generate.part.toc" select="1" doc:type="boolean"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
80
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
81 <!-- generate-book-titlepage -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
82
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
83 <!-- generate-article-titlepage -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
84
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
85 <!-- Equivalent to chunk-skip-first-element-list - forces TOC on separate page
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
86 If 0, first sect is on page for chapter or article -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
87 <xsl:param name="chunk.first.sections" select="'1'"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
88
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
89
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
90 <!-- NOT IN LDP.DSL -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
91 <!-- Create chunks for top-level sections. If 0, chunks will only be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
92 created for chapters/appendixes, and NOT for sectx elements -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
93 <xsl:param name="chunk.sections" select="'1'"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
94
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
95 <!-- list-element-list - NO LONGER NEEDED - bug fix -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
96
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
97 <!-- Filename for the root chunk -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
98 <xsl:param name="root.filename" select="'index'"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
99
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
100 <!-- shade-verbatim
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
101 I have created a function below that shades the verbatim sections.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
102 logic would need to be added to check if this is set.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
103 Norm has added parameters to his 1.44 stylesheets that support
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
104 shading verbatim sections. However, it looks like it requires
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
105 an attribute to a table to have verbatim shading. Needs to be
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
106 explored further. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
107
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
108 <!-- When chunking, use id attribute as filename? 0 or 1 -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
109 <xsl:param name="use.id.as.filename" select="1"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
110
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
111 <!-- graphic-extensions - NO LONGER NEEDED?? -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
112
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
113 <!-- default graphic filename extension -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
114 <xsl:param name="graphic.default.extension" select="'.gif'" doc:type="string"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
115
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
116 <!-- Should chapters be labeled? 0 or 1 -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
117 <xsl:param name="chapter.autolabel" select="1"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
118
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
119 <!-- Should sections be labeled? 0 or 1 -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
120 <xsl:param name="section.autolabel" select="1"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
121
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
122 <!-- Related to section labels, should those labels include the chapter
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
123 number in them (i.e., 1.1, 1.2, 1.3, 1.4 )-->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
124 <xsl:param name="section.label.includes.component.label" select="1" doc:type="boolean"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
125
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
126 <!-- To what depth (in sections) should the TOC go? -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
127 <xsl:param name="toc.section.depth" select="2"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
128
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
129 <!-- Custom 'emphasis' template to allow 'role="strong"' to
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
130 also produce a bold item. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
131 <xsl:template match="emphasis">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
132 <xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
133 <xsl:when test="(@role='strong') or (@role='bold')">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
134 <xsl:call-template name="inline.boldseq"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
135 </xsl:when>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
136 <xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
137 <xsl:call-template name="inline.italicseq"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
138 </xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
139 </xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
140 </xsl:template>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
141
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
142 <!-- book-titlepage-recto-elements
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
143 article-titlepage-recto-elements
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
144 article-titlepage-recto-mode
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
145 article-title
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
146
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
147 - Customizing these elements (for instance, to list what is on the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
148 title page) involves writing a layer for html/titlepage.templates.xml and the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
149 other files html/titlepage.xsl and html/titlepage.templates.xsl - Norm
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
150 is doing something funky here and I haven't fully figured it out. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
151
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
152 <!-- The remainder of ldp.dsl deals with changing the foreground and
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
153 background colors of verbatim elements although in reading through the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
154 DSSSL it doesn't look like it actually changed the foreground colors.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
155 The changing of the background shading can be done at two locations
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
156 (one numbered, one not) in the template below. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
157
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
158 <!-- Custom template for programlisting, screen and synopsis to generate a gray
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
159 background to the item. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
160 <xsl:template match="programlisting|screen|synopsis">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
161 <xsl:param name="suppress-numbers" select="'0'"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
162 <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
163 <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
164
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
165 <xsl:if test="@id">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
166 <a href="{$id}"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
167 </xsl:if>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
168
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
169 <xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
170 <xsl:when test="$suppress-numbers = '0'
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
171 and @linenumbering = 'numbered'
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
172 and $use.extensions != '0'
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
173 and $linenumbering.extension != '0'">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
174 <xsl:variable name="rtf">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
175 <xsl:apply-templates/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
176 </xsl:variable>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
177 <!-- Change the color bacground color in the line below. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
178 <table border="0" bgcolor="#E0E0E0" width="90%">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
179 <tr><td>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
180 <pre class="{name(.)}">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
181 <xsl:call-template name="number.rtf.lines">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
182 <xsl:with-param name="rtf" select="$rtf"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
183 </xsl:call-template>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
184 </pre>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
185 </td></tr></table>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
186 </xsl:when>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
187 <xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
188 <!-- Change the color bacground color in the line below. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
189 <table border="0" bgcolor="#E0E0E0" width="90%">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
190 <tr><td>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
191 <pre class="{name(.)}">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
192 <xsl:apply-templates/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
193 </pre>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
194 </td></tr></table>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
195 </xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
196 </xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
197 </xsl:template>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
198
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
199 <!-- NOT IN LDP.DSL. Custom template to allow Maintainer to be a role in
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
200 the Author element. It also checks for a "condition" attribute
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
201 to the <author> element. If it finds the condition attribute, it
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
202 copies VERBATIM the value of the attribute to be in front of the
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
203 word Author or Maintainer. This is done to allow maximum flexibility.
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
204 Note that an <xsl:text> element was necessary to put the space
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
205 between the condition and the word Author or Maintainer. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
206
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
207 <xsl:template match="author" mode="titlepage.mode">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
208 <h3 class="{name(.)}">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
209 <!-- If there is a condition attribute, print it VERBATIM first -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
210 <xsl:if test="@condition"><i><xsl:value-of select="@condition"/></i>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
211 <xsl:text> </xsl:text></xsl:if>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
212 <!-- Test to see if there is a role. If maintainer, print that. If not,
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
213 assume it is an author. -->
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
214 <xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
215 <xsl:when test="@role='maintainer'">
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
216 <i><xsl:value-of select="$maintainerlabel"/></i>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
217 </xsl:when>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
218 <xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
219 <i><xsl:value-of select="$authorlabel"/></i>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
220 </xsl:otherwise>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
221 </xsl:choose>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
222 <xsl:call-template name="person.name"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
223 </h3>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
224 <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
225 <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
226 </xsl:template>
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
227
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
228
62c5a17038ba XML version of MPlayer's doc
nicolas
parents:
diff changeset
229 </xsl:stylesheet>