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"/>
8 <!-- use our custom html stylesheet -->
9 <xsl:param name=
"html.stylesheet" select=
"'vg_basic.css'"/>
12 <!-- custom header for html documentation -->
13 <xsl:template name=
"header.navigation">
14 <xsl:param name=
"prev" select=
"/foo"/>
15 <xsl:param name=
"next" select=
"/foo"/>
16 <xsl:param name=
"nav.context"/>
18 <xsl:variable name=
"home" select=
"/*[1]"/>
19 <xsl:variable name=
"up" select=
"parent::*"/>
21 <xsl:variable name=
"row1" select=
"$navig.showtitles != 0"/>
22 <xsl:variable name=
"row2" select=
"count($prev) > 0
24 and generate-id($up) != generate-id($home) )
25 or count($next) > 0"/>
28 <!-- never show header nav stuff on title page -->
29 <xsl:if test=
"count($prev)>0">
30 <xsl:if test=
"$row1 or $row2">
31 <table class=
"nav" width=
"100%" cellspacing=
"3" cellpadding=
"3" border=
"0" summary=
"Navigation header">
35 <td width=
"22px" align=
"center" valign=
"middle">
36 <xsl:if test=
"count($prev)>0">
38 <xsl:attribute name=
"href">
39 <xsl:call-template name=
"href.target">
40 <xsl:with-param name=
"object" select=
"$prev"/>
43 <img src=
"images/prev.png" width=
"18" height=
"21" border=
"0">
44 <xsl:attribute name=
"alt">
45 <xsl:call-template name=
"gentext">
46 <xsl:with-param name=
"key">nav-prev
</xsl:with-param>
54 <xsl:if test=
"count($up)>0">
55 <td width=
"25px" align=
"center" valign=
"middle">
57 <xsl:attribute name=
"href">
58 <xsl:call-template name=
"href.target">
59 <xsl:with-param name=
"object" select=
"$up"/>
62 <img src=
"images/up.png" width=
"21" height=
"18" border=
"0">
63 <xsl:attribute name=
"alt">
64 <xsl:call-template name=
"gentext">
65 <xsl:with-param name=
"key">nav-up
</xsl:with-param>
73 <xsl:if test=
"$home != . or $nav.context = 'toc'">
74 <td width=
"31px" align=
"center" valign=
"middle">
76 <xsl:attribute name=
"href">
77 <xsl:call-template name=
"href.target">
78 <xsl:with-param name=
"object" select=
"$home"/>
81 <img src=
"images/home.png" width=
"27" height=
"20" border=
"0">
82 <xsl:attribute name=
"alt">
83 <xsl:call-template name=
"gentext">
84 <xsl:with-param name=
"key">nav-up
</xsl:with-param>
91 <!-- chapter|section heading -->
92 <th align=
"center" valign=
"middle">
93 <xsl:apply-templates select=
"$up" mode=
"object.title.markup"/>
96 <td width=
"22px" align=
"center" valign=
"middle">
97 <xsl:if test=
"count($next)>0">
99 <xsl:attribute name=
"href">
100 <xsl:call-template name=
"href.target">
101 <xsl:with-param name=
"object" select=
"$next"/>
104 <img src=
"images/next.png" width=
"18" height=
"21" border=
"0">
105 <xsl:attribute name=
"alt">
106 <xsl:call-template name=
"gentext">
107 <xsl:with-param name=
"key">nav-next
</xsl:with-param>