1
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
<!-- This modification looks a bit large but is a couple of lines change to make the draft watermark appear in the #content div wrapper rather than the body background -->
6
<xsl:template name="head.content">
7
<xsl:param name="node" select="."/>
8
<xsl:param name="title">
9
<xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
13
<xsl:copy-of select="$title"/>
16
<xsl:if test="$html.stylesheet != ''">
17
<xsl:call-template name="output.html.stylesheets">
18
<xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
22
<xsl:if test="$link.mailto.url != ''">
23
<link rev="made" href="{$link.mailto.url}"/>
26
<xsl:if test="$html.base != ''">
27
<base href="{$html.base}"/>
30
<!-- <meta name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/> -->
32
<xsl:if test="$generate.meta.abstract != 0">
33
<xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo |chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info |sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
34
<xsl:if test="$info and $info/abstract">
35
<meta name="description">
36
<xsl:attribute name="content">
37
<xsl:for-each select="$info/abstract[1]/*">
38
<xsl:value-of select="normalize-space(.)"/>
39
<xsl:if test="position() < last()">
40
<xsl:text> </xsl:text>
48
<xsl:if test="($draft.mode = 'yes' or ($draft.mode = 'maybe' and ancestor-or-self::*[@status][1]/@status = 'draft')) and $draft.watermark.image != ''">
49
<style type="text/css"><xsl:text>
50
#content { background-image: url('</xsl:text>
51
<xsl:value-of select="$draft.watermark.image"/><xsl:text>');
52
background-repeat: repeat-y;
53
background-position: top center;
54
/* The following properties make the watermark "fixed" on the page. */
55
/* I think that's just a bit too distracting for the reader... */
56
/* background-attachment: fixed; */
57
/* background-position: center center; */
61
<xsl:apply-templates select="." mode="head.keywords.content"/>