Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6feb69f6
Commit
6feb69f6
authored
Nov 04, 2016
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: Port page header customizations to XSLT
parent
c8ead2a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
138 additions
and
0 deletions
+138
-0
doc/src/sgml/stylesheet.xsl
doc/src/sgml/stylesheet.xsl
+138
-0
No files found.
doc/src/sgml/stylesheet.xsl
View file @
6feb69f6
...
...
@@ -246,4 +246,142 @@ set toc,title
</xsl:if>
</xsl:template>
<!--
Customization of header
- add Up and Home links
- add tool tips to links
(overrides html/chunk-common.xsl)
-->
<xsl:template
name=
"header.navigation"
>
<xsl:param
name=
"prev"
select=
"/foo"
/>
<xsl:param
name=
"next"
select=
"/foo"
/>
<xsl:param
name=
"nav.context"
/>
<xsl:variable
name=
"home"
select=
"/*[1]"
/>
<xsl:variable
name=
"up"
select=
"parent::*"
/>
<xsl:variable
name=
"row1"
select=
"$navig.showtitles != 0"
/>
<xsl:variable
name=
"row2"
select=
"count($prev) > 0
or (count($up) > 0
and generate-id($up) != generate-id($home)
and $navig.showtitles != 0)
or count($next) > 0"
/>
<xsl:if
test=
"$suppress.navigation = '0' and $suppress.header.navigation = '0'"
>
<div
class=
"navheader"
>
<xsl:if
test=
"$row1 or $row2"
>
<table
width=
"100%"
summary=
"Navigation header"
>
<xsl:if
test=
"$row1"
>
<tr>
<th
colspan=
"5"
align=
"center"
>
<xsl:apply-templates
select=
"."
mode=
"object.title.markup"
/>
</th>
</tr>
</xsl:if>
<xsl:if
test=
"$row2"
>
<tr>
<td
width=
"10%"
align=
"{$direction.align.start}"
>
<xsl:if
test=
"count($prev)>0"
>
<a
accesskey=
"p"
>
<xsl:attribute
name=
"href"
>
<xsl:call-template
name=
"href.target"
>
<xsl:with-param
name=
"object"
select=
"$prev"
/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute
name=
"title"
>
<xsl:apply-templates
select=
"$prev"
mode=
"object.title.markup"
/>
</xsl:attribute>
<xsl:call-template
name=
"navig.content"
>
<xsl:with-param
name=
"direction"
select=
"'prev'"
/>
</xsl:call-template>
</a>
</xsl:if>
<xsl:text>
 
</xsl:text>
</td>
<td
width=
"10%"
align=
"{$direction.align.start}"
>
<xsl:choose>
<xsl:when
test=
"count($up)>0
and generate-id($up) != generate-id($home)"
>
<a
accesskey=
"u"
>
<xsl:attribute
name=
"href"
>
<xsl:call-template
name=
"href.target"
>
<xsl:with-param
name=
"object"
select=
"$up"
/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute
name=
"title"
>
<xsl:apply-templates
select=
"$up"
mode=
"object.title.markup"
/>
</xsl:attribute>
<xsl:call-template
name=
"navig.content"
>
<xsl:with-param
name=
"direction"
select=
"'up'"
/>
</xsl:call-template>
</a>
</xsl:when>
<xsl:otherwise>
 
</xsl:otherwise>
</xsl:choose>
</td>
<th
width=
"60%"
align=
"center"
>
<xsl:choose>
<xsl:when
test=
"count($up) > 0
and generate-id($up) != generate-id($home)
and $navig.showtitles != 0"
>
<xsl:apply-templates
select=
"$up"
mode=
"object.title.markup"
/>
</xsl:when>
<xsl:otherwise>
 
</xsl:otherwise>
</xsl:choose>
</th>
<td
width=
"10%"
align=
"{$direction.align.end}"
>
<xsl:choose>
<xsl:when
test=
"$home != . or $nav.context = 'toc'"
>
<a
accesskey=
"h"
>
<xsl:attribute
name=
"href"
>
<xsl:call-template
name=
"href.target"
>
<xsl:with-param
name=
"object"
select=
"$home"
/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute
name=
"title"
>
<xsl:apply-templates
select=
"$home"
mode=
"object.title.markup"
/>
</xsl:attribute>
<xsl:call-template
name=
"navig.content"
>
<xsl:with-param
name=
"direction"
select=
"'home'"
/>
</xsl:call-template>
</a>
<xsl:if
test=
"$chunk.tocs.and.lots != 0 and $nav.context != 'toc'"
>
<xsl:text>
 
|
 
</xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise>
 
</xsl:otherwise>
</xsl:choose>
</td>
<td
width=
"10%"
align=
"{$direction.align.end}"
>
<xsl:text>
 
</xsl:text>
<xsl:if
test=
"count($next)>0"
>
<a
accesskey=
"n"
>
<xsl:attribute
name=
"href"
>
<xsl:call-template
name=
"href.target"
>
<xsl:with-param
name=
"object"
select=
"$next"
/>
</xsl:call-template>
</xsl:attribute>
<xsl:attribute
name=
"title"
>
<xsl:apply-templates
select=
"$next"
mode=
"object.title.markup"
/>
</xsl:attribute>
<xsl:call-template
name=
"navig.content"
>
<xsl:with-param
name=
"direction"
select=
"'next'"
/>
</xsl:call-template>
</a>
</xsl:if>
</td>
</tr>
</xsl:if>
</table>
</xsl:if>
<xsl:if
test=
"$header.rule != 0"
>
<hr/>
</xsl:if>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment