2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns="http://www.w3.org/TR/xhtml1/transitional"
5 exclude-result-prefixes="#default">
7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl"/>
8 <xsl:include href="stylesheet-common.xsl" />
9 <xsl:include href="stylesheet-html-common.xsl" />
10 <xsl:include href="stylesheet-speedup-xhtml.xsl" />
14 <xsl:param name="base.dir" select="'html/'"></xsl:param>
15 <xsl:param name="use.id.as.filename" select="'1'"></xsl:param>
16 <xsl:param name="generate.legalnotice.link" select="1"></xsl:param>
17 <xsl:param name="chunk.first.sections" select="1"/>
18 <xsl:param name="chunk.quietly" select="1"></xsl:param>
19 <xsl:param name="admon.style"></xsl:param> <!-- handled by CSS stylesheet -->
21 <xsl:param name="website.stylesheet" select="0"/>
23 <xsl:param name="html.stylesheet">
25 <xsl:when test="$website.stylesheet = 0">stylesheet.css</xsl:when>
26 <xsl:otherwise>https://www.postgresql.org/media/css/docs.css</xsl:otherwise>
32 Customization of header
33 - add Up and Home links
34 - add tool tips to links
36 (overrides html/chunk-common.xsl)
38 <xsl:template name="header.navigation">
39 <xsl:param name="prev" select="/foo"/>
40 <xsl:param name="next" select="/foo"/>
41 <xsl:param name="nav.context"/>
43 <xsl:variable name="home" select="/*[1]"/>
44 <xsl:variable name="up" select="parent::*"/>
46 <xsl:variable name="row1" select="$navig.showtitles != 0"/>
47 <xsl:variable name="row2" select="count($prev) > 0
49 and generate-id($up) != generate-id($home)
50 and $navig.showtitles != 0)
51 or count($next) > 0"/>
53 <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
54 <div class="navheader">
55 <xsl:if test="$row1 or $row2">
56 <table width="100%" summary="Navigation header">
59 <th colspan="5" align="center">
60 <xsl:apply-templates select="." mode="object.title.markup"/>
67 <td width="10%" align="{$direction.align.start}">
68 <xsl:if test="count($prev)>0">
70 <xsl:attribute name="href">
71 <xsl:call-template name="href.target">
72 <xsl:with-param name="object" select="$prev"/>
75 <xsl:attribute name="title">
76 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
78 <xsl:call-template name="navig.content">
79 <xsl:with-param name="direction" select="'prev'"/>
83 <xsl:text> </xsl:text>
85 <td width="10%" align="{$direction.align.start}">
87 <xsl:when test="count($up)>0
88 and generate-id($up) != generate-id($home)">
90 <xsl:attribute name="href">
91 <xsl:call-template name="href.target">
92 <xsl:with-param name="object" select="$up"/>
95 <xsl:attribute name="title">
96 <xsl:apply-templates select="$up" mode="object.title.markup"/>
98 <xsl:call-template name="navig.content">
99 <xsl:with-param name="direction" select="'up'"/>
103 <xsl:otherwise> </xsl:otherwise>
106 <th width="60%" align="center">
108 <xsl:when test="count($up) > 0
109 and generate-id($up) != generate-id($home)
110 and $navig.showtitles != 0">
111 <xsl:apply-templates select="$up" mode="object.title.markup"/>
113 <xsl:otherwise> </xsl:otherwise>
116 <td width="10%" align="{$direction.align.end}">
118 <xsl:when test="$home != . or $nav.context = 'toc'">
120 <xsl:attribute name="href">
121 <xsl:call-template name="href.target">
122 <xsl:with-param name="object" select="$home"/>
125 <xsl:attribute name="title">
126 <xsl:apply-templates select="$home" mode="object.title.markup"/>
128 <xsl:call-template name="navig.content">
129 <xsl:with-param name="direction" select="'home'"/>
132 <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
133 <xsl:text> | </xsl:text>
136 <xsl:otherwise> </xsl:otherwise>
139 <td width="10%" align="{$direction.align.end}">
140 <xsl:text> </xsl:text>
141 <xsl:if test="count($next)>0">
143 <xsl:attribute name="href">
144 <xsl:call-template name="href.target">
145 <xsl:with-param name="object" select="$next"/>
148 <xsl:attribute name="title">
149 <xsl:apply-templates select="$next" mode="object.title.markup"/>
151 <xsl:call-template name="navig.content">
152 <xsl:with-param name="direction" select="'next'"/>
161 <xsl:if test="$header.rule != 0">