1 <?xml version=
"1.0"?> <!-- -*- sgml -*- -->
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
4 <!-- import the common styles -->
5 <xsl:import href=
"vg-html-common.xsl"/>
7 <!-- use our custom html stylesheet -->
8 <xsl:param name=
"html.stylesheet" select=
"'vg_basic.css'"/>
10 <!-- use UTF-8 encoding -->
11 <xsl:param name=
"chunker.output.encoding" select=
"'UTF-8'"/>
14 <!-- custom header for html documentation -->
15 <xsl:template name=
"header.navigation">
16 <xsl:param name=
"prev" select=
"/foo"/>
17 <xsl:param name=
"next" select=
"/foo"/>
18 <xsl:param name=
"nav.context"/>
20 <xsl:variable name=
"home" select=
"/*[1]"/>
21 <xsl:variable name=
"up" select=
"parent::*"/>
23 <xsl:variable name=
"row1" select=
"$navig.showtitles != 0"/>
24 <xsl:variable name=
"row2" select=
"count($prev) > 0
26 and generate-id($up) != generate-id($home) )
27 or count($next) > 0"/>
30 <!-- never show header nav stuff on title page -->
31 <xsl:if test=
"count($prev)>0">
32 <xsl:if test=
"$row1 or $row2">
33 <table class=
"nav" width=
"100%" cellspacing=
"3" cellpadding=
"3" border=
"0" summary=
"Navigation header">
37 <td width=
"22px" align=
"center" valign=
"middle">
38 <xsl:if test=
"count($prev)>0">
40 <xsl:attribute name=
"href">
41 <xsl:call-template name=
"href.target">
42 <xsl:with-param name=
"object" select=
"$prev"/>
45 <img src=
"images/prev.png" width=
"18" height=
"21" border=
"0">
46 <xsl:attribute name=
"alt">
47 <xsl:call-template name=
"gentext">
48 <xsl:with-param name=
"key">nav-prev
</xsl:with-param>
56 <xsl:if test=
"count($up)>0">
57 <td width=
"25px" align=
"center" valign=
"middle">
59 <xsl:attribute name=
"href">
60 <xsl:call-template name=
"href.target">
61 <xsl:with-param name=
"object" select=
"$up"/>
64 <img src=
"images/up.png" width=
"21" height=
"18" border=
"0">
65 <xsl:attribute name=
"alt">
66 <xsl:call-template name=
"gentext">
67 <xsl:with-param name=
"key">nav-up
</xsl:with-param>
75 <xsl:if test=
"$home != . or $nav.context = 'toc'">
76 <td width=
"31px" align=
"center" valign=
"middle">
78 <xsl:attribute name=
"href">
79 <xsl:call-template name=
"href.target">
80 <xsl:with-param name=
"object" select=
"$home"/>
83 <img src=
"images/home.png" width=
"27" height=
"20" border=
"0">
84 <xsl:attribute name=
"alt">
85 <xsl:call-template name=
"gentext">
86 <xsl:with-param name=
"key">nav-up
</xsl:with-param>
93 <!-- chapter|section heading -->
94 <th align=
"center" valign=
"middle">
95 <xsl:apply-templates select=
"$up" mode=
"object.title.markup"/>
98 <td width=
"22px" align=
"center" valign=
"middle">
99 <xsl:if test=
"count($next)>0">
101 <xsl:attribute name=
"href">
102 <xsl:call-template name=
"href.target">
103 <xsl:with-param name=
"object" select=
"$next"/>
106 <img src=
"images/next.png" width=
"18" height=
"21" border=
"0">
107 <xsl:attribute name=
"alt">
108 <xsl:call-template name=
"gentext">
109 <xsl:with-param name=
"key">nav-next
</xsl:with-param>