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.
27 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
30 <xsl:import href=
"../../SCons/Tool/docbook/docbook-xsl-1.76.1/html/docbook.xsl"/>
32 <xsl:output method=
"html"
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">
46 book toc,title,figure,table,example,equation
60 <xsl:template match=
"function">
61 <xsl:call-template name=
"inline.boldmonoseq"/>
63 <xsl:template match=
"methodname">
64 <xsl:call-template name=
"inline.boldmonoseq"/>
66 <!-- Prevent our EPUB cover image from getting included -->
67 <xsl:template match=
"mediaobject[@role = 'cover']">
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"/>
79 <xsl:copy-of select=
"$title"/>
82 <xsl:if test=
"$html.base != ''">
83 <base href=
"{$html.base}"/>
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)"/>
95 <xsl:if test=
"$link.mailto.url != ''">
97 href=
"{$link.mailto.url}"/>
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
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() < last()">
125 <xsl:text> </xsl:text>
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; */
149 <xsl:apply-templates select=
"." mode=
"head.keywords.content"/>