source: stylesheets/xhtml/lfs-navigational.xsl@ a9e89d0

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since a9e89d0 was a9e89d0, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: StyleSheets - unified the identation to use spaces.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3663 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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