4 SPDX-FileCopyrightText: Copyright The SCons Foundation (https://scons.org)
5 SPDX-License-Identifier: MIT
9 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
12 <xsl:import href=
"../../SCons/Tool/docbook/docbook-xsl-1.76.1/html/docbook.xsl"/>
14 <xsl:output method=
"html"
18 <xsl:param name=
"l10n.gentext.default.language" select=
"'en'"/>
19 <xsl:param name=
"section.autolabel" select=
"1"/>
20 <xsl:param name=
"section.label.includes.component.label" select=
"1"/>
21 <xsl:param name=
"variablelist.term.break.after" select=
"1"/>
22 <xsl:param name=
"variablelist.term.separator"/>
23 <xsl:param name=
"html.stylesheet" select=
"'scons.css'"/>
24 <xsl:param name=
"generate.toc">
28 book toc,title,figure,table,example,equation
42 <xsl:template match=
"function">
43 <xsl:call-template name=
"inline.boldmonoseq"/>
45 <xsl:template match=
"methodname">
46 <xsl:call-template name=
"inline.boldmonoseq"/>
48 <!-- Prevent our EPUB cover image from getting included -->
49 <xsl:template match=
"mediaobject[@role = 'cover']">
54 <xsl:template name=
"head.content">
55 <xsl:param name=
"node" select=
"."/>
56 <xsl:param name=
"title">
57 <xsl:apply-templates select=
"$node" mode=
"object.title.markup.textonly"/>
61 <xsl:copy-of select=
"$title"/>
64 <xsl:if test=
"$html.base != ''">
65 <base href=
"{$html.base}"/>
68 <!-- Insert links to CSS files or insert literal style elements -->
69 <xsl:call-template name=
"generate.css"/>
71 <xsl:if test=
"$html.stylesheet != ''">
72 <xsl:call-template name=
"output.html.stylesheets">
73 <xsl:with-param name=
"stylesheets" select=
"normalize-space($html.stylesheet)"/>
77 <xsl:if test=
"$link.mailto.url != ''">
79 href=
"{$link.mailto.url}"/>
82 <meta name=
"generator" content=
"text/html; charset=UTF-8" http-equiv=
"Content-Type"/>
84 <xsl:if test=
"$generate.meta.abstract != 0">
85 <xsl:variable name=
"info" select=
"(articleinfo
101 <xsl:if test=
"$info and $info/abstract">
102 <meta name=
"description">
103 <xsl:attribute name=
"content">
104 <xsl:for-each select=
"$info/abstract[1]/*">
105 <xsl:value-of select=
"normalize-space(.)"/>
106 <xsl:if test=
"position() < last()">
107 <xsl:text> </xsl:text>
115 <xsl:if test=
"($draft.mode = 'yes' or
116 ($draft.mode = 'maybe' and
117 ancestor-or-self::*[@status][1]/@status = 'draft'))
118 and $draft.watermark.image != ''">
119 <style type=
"text/css"><xsl:text>
120 body { background-image: url('
</xsl:text>
121 <xsl:value-of select=
"$draft.watermark.image"/><xsl:text>');
122 background-repeat: no-repeat;
123 background-position: top left;
124 /* The following properties make the watermark
"fixed" on the page. */
125 /* I think that's just a bit too distracting for the reader... */
126 /* background-attachment: fixed; */
127 /* background-position: center center; */
131 <xsl:apply-templates select=
"." mode=
"head.keywords.content"/>