source: stylesheets/xhtml/lfs-navigational.xsl@ 9f6b04f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9f6b04f was 9f6b04f, checked in by Bruce Dubbs <bdubbs@…>, 20 years ago

Really fix the navigation links and change the foreword

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2353 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.7 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
4<!-- Updates by Bruce Dubbs <bdubbs@linuxfromscratch.org> -->
5
6<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7 xmlns="http://www.w3.org/1999/xhtml"
8 version="1.0">
9
10 <!-- Dropping the HEAD links -->
11 <xsl:template name="html.head">
12 <head>
13 <xsl:call-template name="system.head.content"/>
14 <xsl:call-template name="head.content"/>
15 <xsl:call-template name="user.head.content"/>
16 </head>
17 </xsl:template>
18
19 <!-- Header Navigation-->
20 <xsl:template name="header.navigation">
21 <xsl:param name="prev" select="/foo"/>
22 <xsl:param name="next" select="/foo"/>
23 <xsl:param name="nav.context"/>
24 <xsl:variable name="home" select="/*[1]"/>
25 <xsl:variable name="up" select="parent::*"/>
26 <xsl:variable name="row" select="count($prev) &gt; 0 or (count($up) &gt; 0
27 and generate-id($up) != generate-id($home)) or count($next) &gt; 0"/>
28 <xsl:if test="$row and $home != .">
29 <div class="navheader">
30 <xsl:if test="$home != .">
31 <div class="headertitles">
32 <p>
33 <xsl:apply-templates select="$home" mode="object.title.markup"/>
34 <xsl:text> &#8211; </xsl:text> <!-- ndash -->
35 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/>
36 </p>
37 <xsl:if test="$up != $home">
38 <p><b>
39 <xsl:apply-templates select="$up" mode="object.title.markup"/>
40 </b></p>
41 </xsl:if>
42 </div>
43 </xsl:if>
44 <div class="headerlinks">
45 <div class='prev'>
46 <xsl:if test="count($prev)&gt;0 and $prev != $home">
47 <a accesskey="p">
48 <xsl:attribute name="href">
49 <xsl:call-template name="href.target">
50 <xsl:with-param name="object" select="$prev"/>
51 </xsl:call-template>
52 </xsl:attribute>
53 <xsl:text>Prev</xsl:text>
54 </a>
55 </xsl:if>
56 <xsl:text>&#160;</xsl:text></div> <!-- nbsp -->
57 <div class='next'><xsl:text>&#160;</xsl:text>
58 <xsl:if test="count($next)&gt;0">
59 <a accesskey="n">
60 <xsl:attribute name="href">
61 <xsl:call-template name="href.target">
62 <xsl:with-param name="object" select="$next"/>
63 </xsl:call-template>
64 </xsl:attribute>
65 <xsl:text>Next</xsl:text>
66 </a>
67 </xsl:if>
68 </div>
69 <div class='home'>
70 <a accesskey="h">
71 <xsl:attribute name="href">
72 <xsl:call-template name="href.target">
73 <xsl:with-param name="object" select="$home"/>
74 </xsl:call-template>
75 </xsl:attribute>
76 <xsl:text>Home</xsl:text>
77 </a>
78 </div>
79 </div>
80 </div>
81 </xsl:if>
82 </xsl:template>
83
84 <!-- Footer Navigation-->
85 <xsl:template name="footer.navigation">
86 <xsl:param name="prev" select="/foo"/>
87 <xsl:param name="next" select="/foo"/>
88 <xsl:param name="nav.context"/>
89 <xsl:variable name="home" select="/*[1]"/>
90 <xsl:variable name="up" select="parent::*"/>
91 <xsl:variable name="row" select="count($prev) &gt; 0 or count($up) &gt; 0
92 or count($next) &gt; 0 or generate-id($home) != generate-id(.)"/>
93 <xsl:if test="$row">
94 <div class="navfooter">
95 <div class='prev'>
96 <xsl:if test="count($prev)&gt;0 and $prev != $home">
97 <a accesskey="p">
98 <xsl:attribute name="href">
99 <xsl:call-template name="href.target">
100 <xsl:with-param name="object" select="$prev"/>
101 </xsl:call-template>
102 </xsl:attribute>
103 <xsl:text>Prev</xsl:text>
104 </a><br/>
105 <!-- <xsl:text> </xsl:text> -->
106 <xsl:apply-templates select="$prev" mode="object.title.markup"/>
107 </xsl:if>
108 <xsl:text>&#160;</xsl:text>
109 </div> <!-- nbsp -->
110 <div class='next'><xsl:text>&#160;</xsl:text>
111 <xsl:if test="count($next)&gt;0">
112 <a accesskey="n">
113 <xsl:attribute name="href">
114 <xsl:call-template name="href.target">
115 <xsl:with-param name="object" select="$next"/>
116 </xsl:call-template>
117 </xsl:attribute>
118 <xsl:text>Next</xsl:text>
119 </a><br/>
120 <!-- <xsl:text> </xsl:text> -->
121 <xsl:apply-templates select="$next" mode="object.title.markup"/>
122 </xsl:if>
123 </div>
124 <xsl:if test="count($up)&gt;0 and $up != $home">
125 <div class='up'>
126 <a accesskey="u">
127 <xsl:attribute name="href">
128 <xsl:call-template name="href.target">
129 <xsl:with-param name="object" select="$up"/>
130 </xsl:call-template>
131 </xsl:attribute>
132 <xsl:text>Up</xsl:text>
133 </a>
134 </div>
135 </xsl:if>
136 <div class='home'>
137 <xsl:if test="$home != .">
138 <a accesskey="h">
139 <xsl:attribute name="href">
140 <xsl:call-template name="href.target">
141 <xsl:with-param name="object" select="$home"/>
142 </xsl:call-template>
143 </xsl:attribute>
144 <xsl:text>Home</xsl:text>
145 </a>
146 </xsl:if>
147 </div>
148 </div>
149 </xsl:if>
150 </xsl:template>
151
152</xsl:stylesheet>
153
154
Note: See TracBrowser for help on using the repository browser.