Mercurial > mplayer.hg
annotate DOCS/xml/html-common.xsl @ 36308:687e65bf99f9
Make fallback for failing context creation actually work.
author | reimar |
---|---|
date | Mon, 05 Aug 2013 16:51:10 +0000 |
parents | 0f1b5b68af32 |
children |
rev | line source |
---|---|
20816 | 1 <?xml version="1.0" encoding="utf-8"?> |
9674 | 2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
3 version="1.0"> | |
4 | |
28909 | 5 <xsl:output method="html" indent="no" |
6 doctype-system="http://www.w3.org/TR/html4/loose.dtd" | |
7 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/> | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28909
diff
changeset
|
8 |
9674 | 9 <!-- ************** |
10 Set parameters | |
11 ************** --> | |
12 | |
20924
abde88225c3a
Output UTF-8 instead of legacy encodings by default.
diego
parents:
20816
diff
changeset
|
13 <xsl:param name="chunker.output.encoding" select="'utf-8'"/> |
abde88225c3a
Output UTF-8 instead of legacy encodings by default.
diego
parents:
20816
diff
changeset
|
14 <xsl:output encoding="utf-8"/> |
abde88225c3a
Output UTF-8 instead of legacy encodings by default.
diego
parents:
20816
diff
changeset
|
15 |
11207 | 16 <xsl:param name="toc.section.depth" select="'4'"/> |
9674 | 17 |
18 <xsl:param name="html.stylesheet" select="'default.css'"/> | |
19 <xsl:param name="html.stylesheet.type" select="'text/css'"/> | |
20 | |
21 <xsl:param name="html.cleanup" select="'1'"/> | |
22 <xsl:param name="make.valid.html" select="'1'"/> | |
23 <xsl:param name="make.single.year.ranges" select="'1'"/> | |
24 <xsl:param name="make.year.ranges" select="'1'"/> | |
25 | |
26 <!-- Use ID value for generated filenames --> | |
27 <xsl:param name="use.id.as.filename" select="'1'"/> | |
28 | |
29 <!-- Depth to which sections are chunked --> | |
30 <xsl:param name="chunk.section.depth" select="'1'"/> | |
31 | |
32 <!-- Create a chunk for the 1st top-level section too --> | |
33 <xsl:param name="chunk.first.sections" select="'1'"/> | |
34 | |
35 <xsl:param name="admon.graphics" select="'0'"/> | |
36 <xsl:param name="navig.graphics" select="'0'"/> | |
37 <xsl:param name="navig.showtitles" select="'1'"/> | |
10135 | 38 |
39 <!-- Generate more links for Site Navigation Bar --> | |
40 <xsl:param name="html.extra.head.links" select="1"/> | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
28909
diff
changeset
|
41 |
9674 | 42 <!-- Label sections too (eg. 2.1, 2.1.1) --> |
43 <xsl:param name="section.autolabel" select="'1'"/> | |
44 <xsl:param name="section.label.includes.component.label" select="'1'"/> | |
45 | |
46 <!-- Use informal procedures; no need to number them --> | |
47 <xsl:param name="formal.procedures" select="'0'"/> | |
48 | |
49 <xsl:param name="generate.toc"> | |
50 appendix toc | |
51 article toc | |
52 book toc | |
53 chapter toc | |
54 part toc | |
55 preface toc | |
56 qandadiv toc | |
57 qandaset toc | |
58 reference toc | |
59 section toc | |
60 set toc | |
61 </xsl:param> | |
62 | |
63 <!-- ********* | |
64 Templates | |
65 ********* --> | |
66 | |
67 <xsl:template match="application"> | |
68 <span class="application"><xsl:apply-templates/></span> | |
69 </xsl:template> | |
70 | |
71 <xsl:template match="option"> | |
72 <tt class="option"><xsl:apply-templates/></tt> | |
73 </xsl:template> | |
74 | |
75 <xsl:template match="filename"> | |
76 <tt class="filename"><xsl:apply-templates/></tt> | |
77 </xsl:template> | |
78 | |
79 <xsl:template match="keycap"> | |
80 <span class="keycap"><b><xsl:apply-templates/></b></span> | |
81 </xsl:template> | |
82 | |
83 <xsl:template match="guimenu"> | |
84 <span class="guimenu"><xsl:apply-templates/></span> | |
85 </xsl:template> | |
86 | |
87 <xsl:template match="guisubmenu"> | |
88 <span class="guisubmenu"><xsl:apply-templates/></span> | |
89 </xsl:template> | |
90 | |
91 <xsl:template match="guimenuitem"> | |
92 <span class="guimenuitem"><xsl:apply-templates/></span> | |
93 </xsl:template> | |
94 | |
95 </xsl:stylesheet> |