[ci skip] multi-user should be multiuser
[scons.git] / doc / man / html.xsl
blobcf7cf876610c17bd51f77068348c5e995d5f746e
1 <?xml version='1.0'?>
2 <!--
4 __COPYRIGHT__
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sublicense, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
14 The above copyright notice and this permission notice shall be included
15 in all copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
18 KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
19 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 -->
26 <xsl:stylesheet
27 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
28 version="1.0">
30 <xsl:import href="../../SCons/Tool/docbook/docbook-xsl-1.76.1/html/docbook.xsl"/>
32 <xsl:output method="html"
33 encoding="UTF-8"
34 indent="no"/>
36 <xsl:param name="l10n.gentext.default.language" select="'en'"/>
37 <xsl:param name="section.autolabel" select="1"/>
38 <xsl:param name="section.label.includes.component.label" select="1"/>
39 <xsl:param name="variablelist.term.break.after" select="1"/>
40 <xsl:param name="variablelist.term.separator"/>
41 <xsl:param name="html.stylesheet" select="'scons.css'"/>
42 <xsl:param name="generate.toc">
43 /appendix toc,title
44 article/appendix nop
45 /article toc,title
46 book toc,title,figure,table,example,equation
47 /chapter toc,title
48 part toc,title
49 /preface toc,title
50 reference title
51 /sect1 toc
52 /sect2 toc
53 /sect3 toc
54 /sect4 toc
55 /sect5 toc
56 /section toc
57 set toc,title
58 </xsl:param>
60 <xsl:template match="function">
61 <xsl:call-template name="inline.boldmonoseq"/>
62 </xsl:template>
63 <xsl:template match="methodname">
64 <xsl:call-template name="inline.boldmonoseq"/>
65 </xsl:template>
66 <!-- Prevent our EPUB cover image from getting included -->
67 <xsl:template match="mediaobject[@role = 'cover']">
68 </xsl:template>
72 <xsl:template name="head.content">
73 <xsl:param name="node" select="."/>
74 <xsl:param name="title">
75 <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
76 </xsl:param>
78 <title>
79 <xsl:copy-of select="$title"/>
80 </title>
82 <xsl:if test="$html.base != ''">
83 <base href="{$html.base}"/>
84 </xsl:if>
86 <!-- Insert links to CSS files or insert literal style elements -->
87 <xsl:call-template name="generate.css"/>
89 <xsl:if test="$html.stylesheet != ''">
90 <xsl:call-template name="output.html.stylesheets">
91 <xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
92 </xsl:call-template>
93 </xsl:if>
95 <xsl:if test="$link.mailto.url != ''">
96 <link rev="made"
97 href="{$link.mailto.url}"/>
98 </xsl:if>
100 <meta name="generator" content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
102 <xsl:if test="$generate.meta.abstract != 0">
103 <xsl:variable name="info" select="(articleinfo
104 |bookinfo
105 |prefaceinfo
106 |chapterinfo
107 |appendixinfo
108 |sectioninfo
109 |sect1info
110 |sect2info
111 |sect3info
112 |sect4info
113 |sect5info
114 |referenceinfo
115 |refentryinfo
116 |partinfo
117 |info
118 |docinfo)[1]"/>
119 <xsl:if test="$info and $info/abstract">
120 <meta name="description">
121 <xsl:attribute name="content">
122 <xsl:for-each select="$info/abstract[1]/*">
123 <xsl:value-of select="normalize-space(.)"/>
124 <xsl:if test="position() &lt; last()">
125 <xsl:text> </xsl:text>
126 </xsl:if>
127 </xsl:for-each>
128 </xsl:attribute>
129 </meta>
130 </xsl:if>
131 </xsl:if>
133 <xsl:if test="($draft.mode = 'yes' or
134 ($draft.mode = 'maybe' and
135 ancestor-or-self::*[@status][1]/@status = 'draft'))
136 and $draft.watermark.image != ''">
137 <style type="text/css"><xsl:text>
138 body { background-image: url('</xsl:text>
139 <xsl:value-of select="$draft.watermark.image"/><xsl:text>');
140 background-repeat: no-repeat;
141 background-position: top left;
142 /* The following properties make the watermark "fixed" on the page. */
143 /* I think that's just a bit too distracting for the reader... */
144 /* background-attachment: fixed; */
145 /* background-position: center center; */
146 }</xsl:text>
147 </style>
148 </xsl:if>
149 <xsl:apply-templates select="." mode="head.keywords.content"/>
150 </xsl:template>
152 </xsl:stylesheet>