1 |
rajiv |
1.6 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
neysx |
1.123 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" |
3 |
neysx |
1.129 |
xmlns:exslt="http://exslt.org/common" |
4 |
neysx |
1.131 |
xmlns:func="http://exslt.org/functions" |
5 |
|
|
extension-element-prefixes="exslt func" > |
6 |
swift |
1.73 |
|
7 |
neysx |
1.146 |
<xsl:output encoding="UTF-8" method="html" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd"/> |
8 |
|
|
|
9 |
swift |
1.73 |
<!-- Include external stylesheets --> |
10 |
swift |
1.102 |
<xsl:include href="content.xsl" /> |
11 |
|
|
<xsl:include href="handbook.xsl" /> |
12 |
|
|
<xsl:include href="inserts.xsl" /> |
13 |
swift |
1.73 |
|
14 |
|
|
<!-- When using <pre>, whitespaces should be preserved --> |
15 |
|
|
<xsl:preserve-space elements="pre"/> |
16 |
|
|
|
17 |
|
|
<!-- Global definition of style parameter --> |
18 |
|
|
<xsl:param name="style">0</xsl:param> |
19 |
neysx |
1.146 |
<xsl:param name="newsitemcount">6</xsl:param> |
20 |
swift |
1.73 |
|
21 |
neysx |
1.163 |
<!-- Category from metadoc --> |
22 |
|
|
<xsl:param name="catid">0</xsl:param> |
23 |
|
|
|
24 |
swift |
1.73 |
<!-- img tag --> |
25 |
|
|
<xsl:template match="img"> |
26 |
neysx |
1.157 |
<img src="{@src}" alt=""/> |
27 |
swift |
1.73 |
</xsl:template> |
28 |
|
|
|
29 |
neysx |
1.165 |
<xsl:template name="show-disclaimer"> |
30 |
|
|
<!-- Disclaimer stuff --> |
31 |
|
|
<xsl:if test="/*[1][@disclaimer] or /*[1][@redirect]"> |
32 |
neysx |
1.177 |
<table class="ncontent" align="center" width="90%" border="2px" cellspacing="0" cellpadding="4px"> |
33 |
|
|
<xsl:if test="/*[1]/@disclaimer='obsolete'"> |
34 |
|
|
<xsl:attribute name="style">margin-top:40px;margin-bottom:30px</xsl:attribute> |
35 |
|
|
</xsl:if> |
36 |
neysx |
1.165 |
<tr> |
37 |
|
|
<td bgcolor="#ddddff"> |
38 |
|
|
<p class="note"> |
39 |
|
|
<xsl:if test="/*[1][@disclaimer]"> |
40 |
neysx |
1.177 |
<xsl:if test="/*[1]/@disclaimer='obsolete'"> |
41 |
|
|
<xsl:attribute name="style">font-size:1.3em</xsl:attribute> |
42 |
|
|
</xsl:if> |
43 |
neysx |
1.165 |
<b><xsl:value-of select="func:gettext('disclaimer')"/>: </b> |
44 |
|
|
<xsl:apply-templates select="func:gettext(/*[1]/@disclaimer)"/> |
45 |
|
|
</xsl:if> |
46 |
|
|
<xsl:if test="/*[1][@redirect]"> |
47 |
|
|
<xsl:apply-templates select="func:gettext('redirect')"> |
48 |
|
|
<xsl:with-param name="paramlink" select="/*[1]/@redirect"/> |
49 |
|
|
</xsl:apply-templates> |
50 |
|
|
</xsl:if> |
51 |
|
|
</p> |
52 |
|
|
</td> |
53 |
|
|
</tr> |
54 |
|
|
</table> |
55 |
|
|
</xsl:if> |
56 |
|
|
</xsl:template> |
57 |
|
|
|
58 |
|
|
|
59 |
swift |
1.73 |
<!-- Content of /guide --> |
60 |
|
|
<xsl:template name="guidecontent"> |
61 |
neysx |
1.141 |
<xsl:if test="$style != 'printable'"> |
62 |
|
|
<br /> |
63 |
|
|
</xsl:if> |
64 |
neysx |
1.165 |
|
65 |
swift |
1.118 |
<h1> |
66 |
swift |
1.73 |
<xsl:choose> |
67 |
|
|
<xsl:when test="/guide/subtitle"><xsl:value-of select="/guide/title"/>: <xsl:value-of select="/guide/subtitle"/></xsl:when> |
68 |
|
|
<xsl:otherwise><xsl:value-of select="/guide/title"/></xsl:otherwise> |
69 |
|
|
</xsl:choose> |
70 |
swift |
1.118 |
</h1> |
71 |
swift |
1.73 |
|
72 |
swift |
1.96 |
<xsl:choose> |
73 |
|
|
<xsl:when test="$style = 'printable'"> |
74 |
|
|
<xsl:apply-templates select="author" /> |
75 |
neysx |
1.141 |
<br/> |
76 |
|
|
<i><xsl:call-template name="contentdate"/></i> |
77 |
neysx |
1.165 |
<xsl:variable name="outdated"> |
78 |
|
|
<xsl:call-template name="outdated-translation"/> |
79 |
|
|
</xsl:variable> |
80 |
|
|
<xsl:if test="string-length($outdated) > 1"> |
81 |
|
|
<br/><i><xsl:copy-of select="$outdated"/></i> |
82 |
|
|
</xsl:if> |
83 |
swift |
1.96 |
</xsl:when> |
84 |
|
|
<xsl:otherwise> |
85 |
neysx |
1.149 |
<xsl:if test="count(/guide/chapter)>1"> |
86 |
swift |
1.96 |
<form name="contents" action="http://www.gentoo.org"> |
87 |
neysx |
1.123 |
<b><xsl:value-of select="func:gettext('Content')"/></b>: |
88 |
neysx |
1.146 |
<select name="url" size="1" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:sans-serif,Arial,Helvetica"> |
89 |
swift |
1.96 |
<xsl:for-each select="chapter"> |
90 |
|
|
<xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable><option value="#{$chapid}"><xsl:number/>. <xsl:value-of select="title"/></option> |
91 |
|
|
</xsl:for-each> |
92 |
|
|
</select> |
93 |
|
|
</form> |
94 |
neysx |
1.149 |
</xsl:if> |
95 |
swift |
1.96 |
</xsl:otherwise> |
96 |
|
|
</xsl:choose> |
97 |
swift |
1.73 |
|
98 |
neysx |
1.147 |
<xsl:choose> |
99 |
|
|
<xsl:when test="/guide"> |
100 |
|
|
<xsl:apply-templates select="chapter"/> |
101 |
|
|
</xsl:when> |
102 |
|
|
<xsl:when test="/sections"> |
103 |
|
|
<xsl:apply-templates select="/sections/section"/> |
104 |
|
|
</xsl:when> |
105 |
|
|
</xsl:choose> |
106 |
swift |
1.73 |
<br/> |
107 |
|
|
<xsl:if test="/guide/license"> |
108 |
|
|
<xsl:apply-templates select="license" /> |
109 |
|
|
</xsl:if> |
110 |
|
|
<br/> |
111 |
|
|
</xsl:template> |
112 |
|
|
|
113 |
|
|
<!-- Layout for documentation --> |
114 |
|
|
<xsl:template name="doclayout"> |
115 |
neysx |
1.165 |
<html> |
116 |
|
|
<xsl:if test="string-length($glang)>1"> |
117 |
|
|
<xsl:attribute name="lang"><xsl:value-of select="translate($glang,'_','-')"/></xsl:attribute> |
118 |
|
|
</xsl:if> |
119 |
|
|
<head> |
120 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
121 |
neysx |
1.172 |
<link title="new" rel="stylesheet" href="/css/main.css" type="text/css"/> |
122 |
neysx |
1.165 |
<link REL="shortcut icon" HREF="http://www.gentoo.org/favicon.ico" TYPE="image/x-icon"/> |
123 |
|
|
<!-- Just remove this bit if http refresh is too annoying --> |
124 |
|
|
<xsl:if test="/*[1][@redirect]"> |
125 |
|
|
<meta http-equiv="Refresh"> |
126 |
|
|
<xsl:attribute name="content"><xsl:value-of select="concat('15; URL=', /*[1]/@redirect)"/></xsl:attribute> |
127 |
|
|
</meta> |
128 |
|
|
</xsl:if> |
129 |
|
|
|
130 |
swift |
1.96 |
<title> |
131 |
swift |
1.73 |
<xsl:choose> |
132 |
swift |
1.96 |
<xsl:when test="/guide/@type='project'">Gentoo Linux Projects</xsl:when> |
133 |
|
|
<xsl:when test="/guide/@type='newsletter'">Gentoo Linux Newsletter</xsl:when> |
134 |
neysx |
1.147 |
<xsl:when test="/sections">Gentoo Linux Handbook Page</xsl:when> |
135 |
neysx |
1.123 |
<xsl:otherwise><xsl:value-of select="func:gettext('GLinuxDoc')"/></xsl:otherwise> |
136 |
swift |
1.73 |
</xsl:choose> |
137 |
neysx |
1.129 |
-- |
138 |
swift |
1.73 |
<xsl:choose> |
139 |
|
|
<xsl:when test="subtitle"><xsl:if test="/guide/@type!='newsletter'"><xsl:value-of select="title"/>:</xsl:if> <xsl:value-of select="subtitle"/></xsl:when> |
140 |
|
|
<xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise> |
141 |
|
|
</xsl:choose> |
142 |
|
|
</title> |
143 |
swift |
1.118 |
|
144 |
neysx |
1.165 |
</head> |
145 |
swift |
1.118 |
<xsl:choose> |
146 |
|
|
<xsl:when test="$style = 'printable'"> |
147 |
|
|
<!-- Insert the node-specific content --> |
148 |
|
|
<body bgcolor="#ffffff"> |
149 |
neysx |
1.165 |
<xsl:call-template name="show-disclaimer"/> |
150 |
swift |
1.118 |
<xsl:call-template name="content"/> |
151 |
|
|
</body> |
152 |
|
|
</xsl:when> |
153 |
|
|
<xsl:otherwise> |
154 |
swift |
1.100 |
<body style="margin:0px;" bgcolor="#ffffff"> |
155 |
swift |
1.73 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
156 |
|
|
<tr> |
157 |
|
|
<td valign="top" height="125" bgcolor="#45347b"> |
158 |
neysx |
1.146 |
<a href="/"><img border="0" src="/images/gtop-www.jpg" alt="Gentoo Logo"/></a> |
159 |
swift |
1.73 |
</td> |
160 |
|
|
</tr> |
161 |
|
|
<tr> |
162 |
|
|
<td valign="top" align="right" colspan="1" bgcolor="#ffffff"> |
163 |
|
|
<table border="0" cellspacing="0" cellpadding="0" width="100%"> |
164 |
|
|
<tr> |
165 |
|
|
<td width="99%" class="content" valign="top" align="left"> |
166 |
|
|
<!-- Insert the node-specific content --> |
167 |
neysx |
1.165 |
<xsl:call-template name="show-disclaimer"/> |
168 |
swift |
1.73 |
<xsl:call-template name="content"/> |
169 |
|
|
</td> |
170 |
|
|
<td width="1%" bgcolor="#dddaec" valign="top"> |
171 |
neysx |
1.146 |
<xsl:call-template name="rhcol"/> |
172 |
swift |
1.73 |
</td> |
173 |
|
|
</tr> |
174 |
|
|
</table> |
175 |
|
|
</td> |
176 |
|
|
</tr> |
177 |
|
|
<tr> |
178 |
neysx |
1.146 |
<td colspan="2" align="right" class="infohead"> |
179 |
neysx |
1.181 |
Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Foundation, Inc. Questions, Comments? <a class="highlight" href="/main/en/contact.xml">Contact us</a>. |
180 |
swift |
1.73 |
</td> |
181 |
|
|
</tr> |
182 |
|
|
</table> |
183 |
|
|
|
184 |
|
|
</body> |
185 |
swift |
1.118 |
</xsl:otherwise> |
186 |
|
|
</xsl:choose> |
187 |
neysx |
1.165 |
</html> |
188 |
swift |
1.73 |
</xsl:template> |
189 |
|
|
|
190 |
|
|
<!-- Guide template --> |
191 |
|
|
<xsl:template match="/guide"> |
192 |
|
|
<xsl:call-template name="doclayout" /> |
193 |
|
|
</xsl:template> |
194 |
|
|
|
195 |
|
|
<!-- {Mainpage, News, Email} template --> |
196 |
neysx |
1.172 |
<xsl:template match="/mainpage | /news"> <!-- Removed " | /email" can't find any use --> |
197 |
neysx |
1.165 |
<html> |
198 |
|
|
<xsl:if test="string-length($glang)>1"> |
199 |
|
|
<xsl:attribute name="lang"><xsl:value-of select="translate($glang,'_','-')"/></xsl:attribute> |
200 |
|
|
</xsl:if> |
201 |
|
|
<head> |
202 |
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
203 |
neysx |
1.172 |
<link title="new" rel="stylesheet" href="/css/main.css" type="text/css"/> |
204 |
neysx |
1.165 |
<link REL="shortcut icon" HREF="http://www.gentoo.org/favicon.ico" TYPE="image/x-icon"/> |
205 |
|
|
|
206 |
swift |
1.73 |
<xsl:if test="/mainpage/@id='news'"> |
207 |
|
|
<link rel="alternate" type="application/rss+xml" title="Gentoo Linux News RDF" href="http://www.gentoo.org/rdf/en/gentoo-news.rdf" /> |
208 |
|
|
</xsl:if> |
209 |
|
|
<xsl:choose> |
210 |
|
|
<xsl:when test="/mainpage | /news"> |
211 |
neysx |
1.129 |
<title>Gentoo Linux -- <xsl:value-of select="title"/></title> |
212 |
swift |
1.73 |
</xsl:when> |
213 |
neysx |
1.172 |
<!-- Can't find any use for this. Will be deleted. |
214 |
swift |
1.73 |
<xsl:when test="/email"> |
215 |
|
|
<title><xsl:value-of select="subject"/></title> |
216 |
|
|
</xsl:when> |
217 |
neysx |
1.172 |
--> |
218 |
swift |
1.73 |
</xsl:choose> |
219 |
neysx |
1.165 |
</head> |
220 |
swift |
1.100 |
<body style="margin:0px;" bgcolor="#000000"> |
221 |
drobbins |
1.1 |
|
222 |
swift |
1.73 |
<table border="0" width="100%" cellspacing="0" cellpadding="0"> |
223 |
|
|
<tr> |
224 |
|
|
<td valign="top" height="125" width="1%" bgcolor="#45347b"> |
225 |
neysx |
1.146 |
<a href="/"><img border="0" src="/images/gtop-www.jpg" alt="Gentoo Logo"/></a> |
226 |
swift |
1.73 |
</td> |
227 |
neysx |
1.146 |
|
228 |
neysx |
1.149 |
<td valign="bottom" align="left" bgcolor="#000000" colspan="2" lang="en"> |
229 |
swift |
1.73 |
<p class="menu"> |
230 |
|
|
<xsl:choose> |
231 |
|
|
<xsl:when test="/mainpage/@id='about'"> |
232 |
neysx |
1.146 |
<a class="highlight" href="/main/en/about.xml">About</a> |
233 |
swift |
1.73 |
</xsl:when> |
234 |
|
|
<xsl:otherwise> |
235 |
neysx |
1.146 |
<a class="menulink" href="/main/en/about.xml">About</a> |
236 |
swift |
1.73 |
</xsl:otherwise> |
237 |
|
|
</xsl:choose> |
238 |
neysx |
1.146 |
| |
239 |
swift |
1.73 |
<xsl:choose> |
240 |
|
|
<xsl:when test="/mainpage/@id='projects'"> |
241 |
neysx |
1.146 |
<a class="highlight" href="/proj/en/index.xml?showlevel=1">Projects</a> |
242 |
swift |
1.73 |
</xsl:when> |
243 |
|
|
<xsl:otherwise> |
244 |
neysx |
1.146 |
<a class="menulink" href="/proj/en/index.xml?showlevel=1">Projects</a> |
245 |
swift |
1.73 |
</xsl:otherwise> |
246 |
|
|
</xsl:choose> |
247 |
neysx |
1.146 |
| |
248 |
swift |
1.73 |
<xsl:choose> |
249 |
|
|
<xsl:when test="/mainpage/@id='docs'"> |
250 |
neysx |
1.146 |
<a class="highlight" href="/doc/en/index.xml">Docs</a> |
251 |
swift |
1.73 |
</xsl:when> |
252 |
|
|
<xsl:otherwise> |
253 |
neysx |
1.146 |
<a class="menulink" href="/doc/en/index.xml">Docs</a> |
254 |
swift |
1.73 |
</xsl:otherwise> |
255 |
|
|
</xsl:choose> |
256 |
neysx |
1.146 |
| <a class="menulink" href="http://forums.gentoo.org">Forums</a> |
257 |
|
|
| |
258 |
swift |
1.73 |
<xsl:choose> |
259 |
|
|
<xsl:when test="/mainpage/@id='lists'"> |
260 |
neysx |
1.146 |
<a class="highlight" href="/main/en/lists.xml">Lists</a> |
261 |
swift |
1.73 |
</xsl:when> |
262 |
|
|
<xsl:otherwise> |
263 |
neysx |
1.146 |
<a class="menulink" href="/main/en/lists.xml">Lists</a> |
264 |
swift |
1.73 |
</xsl:otherwise> |
265 |
neysx |
1.149 |
</xsl:choose> |
266 |
|
|
| <a class="menulink" href="http://bugs.gentoo.org">Bugs</a> |
267 |
|
|
| <a class="menulink" href="http://www.cafepress.com/officialgentoo/">Store</a> |
268 |
|
|
| |
269 |
swift |
1.73 |
<xsl:choose> |
270 |
|
|
<xsl:when test="/mainpage/@id='newsletter'"> |
271 |
neysx |
1.146 |
<a class="highlight" href="/news/en/gwn/gwn.xml"> GWN</a> |
272 |
swift |
1.73 |
</xsl:when> |
273 |
|
|
<xsl:otherwise> |
274 |
neysx |
1.146 |
<a class="menulink" href="/news/en/gwn/gwn.xml"> GWN</a> |
275 |
swift |
1.73 |
</xsl:otherwise> |
276 |
|
|
</xsl:choose> |
277 |
neysx |
1.146 |
| |
278 |
swift |
1.73 |
<xsl:choose> |
279 |
|
|
<xsl:when test="/mainpage/@id='where'"> |
280 |
neysx |
1.146 |
<a class="highlight" href="/main/en/where.xml">Get Gentoo!</a> |
281 |
swift |
1.73 |
</xsl:when> |
282 |
|
|
<xsl:otherwise> |
283 |
neysx |
1.146 |
<a class="menulink" href="/main/en/where.xml">Get Gentoo!</a> |
284 |
swift |
1.73 |
</xsl:otherwise> |
285 |
|
|
</xsl:choose> |
286 |
neysx |
1.146 |
| |
287 |
swift |
1.73 |
<xsl:choose> |
288 |
swift |
1.114 |
<xsl:when test="/mainpage/@id='support'"> |
289 |
neysx |
1.146 |
<a class="highlight" href="/main/en/support.xml">Support</a> |
290 |
swift |
1.114 |
</xsl:when> |
291 |
|
|
<xsl:otherwise> |
292 |
neysx |
1.146 |
<a class="menulink" href="/main/en/support.xml">Support</a> |
293 |
swift |
1.114 |
</xsl:otherwise> |
294 |
|
|
</xsl:choose> |
295 |
neysx |
1.146 |
| |
296 |
swift |
1.114 |
<xsl:choose> |
297 |
swift |
1.73 |
<xsl:when test="/mainpage/@id='sponsors'"> |
298 |
|
|
<a class="highlight" href="/main/en/sponsors.xml">Sponsors</a> |
299 |
|
|
</xsl:when> |
300 |
|
|
<xsl:otherwise> |
301 |
blackace |
1.98 |
<a class="menulink" href="/main/en/sponsors.xml">Sponsors</a> |
302 |
swift |
1.73 |
</xsl:otherwise> |
303 |
|
|
</xsl:choose> |
304 |
neysx |
1.146 |
| <a class="menulink" href="http://planet.gentoo.org">Planet</a> |
305 |
neysx |
1.181 |
| |
306 |
|
|
<xsl:choose> |
307 |
|
|
<xsl:when test="/mainpage/@id='contact'"> |
308 |
|
|
<a class="highlight" href="/main/en/contact.xml">Contact</a> |
309 |
|
|
</xsl:when> |
310 |
|
|
<xsl:otherwise> |
311 |
|
|
<a class="menulink" href="/main/en/contact.xml">Contact</a> |
312 |
|
|
</xsl:otherwise> |
313 |
|
|
</xsl:choose> |
314 |
swift |
1.73 |
</p> |
315 |
|
|
</td> |
316 |
|
|
</tr> |
317 |
|
|
<tr> |
318 |
|
|
<td valign="top" align="right" width="1%" bgcolor="#dddaec"> |
319 |
|
|
<table width="100%" cellspacing="0" cellpadding="0" border="0"> |
320 |
|
|
<tr> |
321 |
|
|
<td height="1%" valign="top" align="right"> |
322 |
|
|
<img src="/images/gridtest.gif" alt="Gentoo Spaceship"/> |
323 |
|
|
</td> |
324 |
|
|
</tr> |
325 |
|
|
<tr> |
326 |
neysx |
1.149 |
<td height="99%" valign="top" align="left"> |
327 |
swift |
1.73 |
<!--info goes here--> |
328 |
|
|
<table cellspacing="0" cellpadding="5" border="0"> |
329 |
|
|
<tr> |
330 |
neysx |
1.149 |
<td valign="top" class="leftmenu" lang="en"> |
331 |
swift |
1.73 |
<p class="altmenu"> |
332 |
neysx |
1.149 |
Installation: |
333 |
|
|
<br/> |
334 |
|
|
<a class="altlink" href="/doc/en/handbook/index.xml">Gentoo Handbook</a> |
335 |
|
|
<br/> |
336 |
|
|
<a class="altlink" href="/doc/en/index.xml?catid=install#doc_chap2">Installation Docs</a> |
337 |
|
|
<br/><br/> |
338 |
swift |
1.73 |
Documentation: |
339 |
|
|
<br/> |
340 |
neysx |
1.170 |
<a class="altlink" href="/doc/en/">Home</a> |
341 |
|
|
<br/> |
342 |
|
|
<a class="altlink" href="/doc/en/list.xml">Listing</a> |
343 |
drobbins |
1.1 |
<br/> |
344 |
neysx |
1.149 |
<a class="altlink" href="/main/en/about.xml">About Gentoo</a> |
345 |
swift |
1.73 |
<br/> |
346 |
neysx |
1.149 |
<a class="altlink" href="/main/en/philosophy.xml">Philosophy</a> |
347 |
swift |
1.73 |
<br/> |
348 |
neysx |
1.149 |
<a class="altlink" href="/main/en/contract.xml">Social Contract</a> |
349 |
swift |
1.73 |
<br/><br/> |
350 |
neysx |
1.149 |
Resources: |
351 |
swift |
1.73 |
<br/> |
352 |
neysx |
1.149 |
<a class="altlink" href="http://bugs.gentoo.org">Bug Tracker</a> |
353 |
swift |
1.73 |
<br/> |
354 |
swift |
1.162 |
<a class="altlink" href="/proj/en/devrel/roll-call/userinfo.xml">Developer List</a> |
355 |
|
|
<br/> |
356 |
neysx |
1.149 |
<a class="altlink" href="http://forums.gentoo.org">Discussion Forums</a> |
357 |
swift |
1.73 |
<br/> |
358 |
plasmaroo |
1.173 |
<a class="altlink" href="http://torrents.gentoo.org/">Gentoo BitTorrents</a> |
359 |
swift |
1.162 |
<br/> |
360 |
|
|
<a class="altlink" href="/proj/en/glep/">Gentoo Linux Enhancement Proposals</a> |
361 |
|
|
<br/> |
362 |
|
|
<a class="altlink" href="/main/en/irc.xml">IRC Channels</a> |
363 |
|
|
<br/> |
364 |
neysx |
1.149 |
<a class="altlink" href="/main/en/lists.xml">Mailing Lists</a> |
365 |
klieber |
1.108 |
<br/> |
366 |
swift |
1.162 |
<a class="altlink" href="/main/en/mirrors.xml">Mirrors</a> |
367 |
klieber |
1.75 |
<br/> |
368 |
swift |
1.162 |
<a class="altlink" href="/main/en/name-logo.xml">Name and Logo Guidelines</a> |
369 |
swift |
1.73 |
<br/> |
370 |
neysx |
1.149 |
<a class="altlink" href="http://packages.gentoo.org/">Online Package Database</a> |
371 |
swift |
1.73 |
<br/> |
372 |
swift |
1.162 |
<a class="altlink" href="/security/en/index.xml">Security Announcements</a> |
373 |
swift |
1.73 |
<br/> |
374 |
neysx |
1.149 |
<a class="altlink" href="/proj/en/devrel/staffing-needs/">Staffing Needs</a> |
375 |
|
|
<br/> |
376 |
swift |
1.162 |
<a class="altlink" href="http://vendors.gentoo.org/">Supporting Vendors</a> |
377 |
swift |
1.155 |
<br/> |
378 |
neysx |
1.180 |
<a class="altlink" href="http://sources.gentoo.org/">View our CVS</a> |
379 |
swift |
1.162 |
|
380 |
neysx |
1.146 |
<!-- |
381 |
|
|
<a class="altlink" href="/dyn/index-cvs.xml">Daily CVS ChangeLog</a> |
382 |
|
|
--> |
383 |
swift |
1.73 |
<!--<a class="altlink" href="http://stats.gentoo.org">Gentoo Usage Statistics</a> |
384 |
|
|
<br/> |
385 |
|
|
<a class="altlink" href="http://stable.gentoo.org">Gentoo Stable Project</a> |
386 |
|
|
<br/> |
387 |
|
|
--> |
388 |
|
|
<br/><br/> |
389 |
|
|
Graphics: |
390 |
|
|
<br/> |
391 |
|
|
<a class="altlink" href="/main/en/graphics.xml">Logos and themes</a> |
392 |
|
|
<br/> |
393 |
|
|
<a class="altlink" href="/dyn/icons.xml">Icons</a> |
394 |
|
|
<br/> |
395 |
|
|
<a class="altlink" href="/main/en/shots.xml">ScreenShots</a> |
396 |
blackace |
1.98 |
<br/><br/> |
397 |
swift |
1.73 |
Miscellaneous Resources: |
398 |
neysx |
1.149 |
<br/> |
399 |
|
|
<a class="altlink" href="http://www.cafepress.com/officialgentoo/">Gentoo Linux Store</a> |
400 |
|
|
<br/> |
401 |
swift |
1.73 |
<a class="altlink" href="/main/en/projects.xml">Gentoo-hosted projects</a> |
402 |
|
|
<br/> |
403 |
curtis119 |
1.179 |
<a class="altlink" href="/doc/en/articles/">IBM dW/Intel article archive</a> |
404 |
neysx |
1.181 |
<!-- Moved below news items in main area |
405 |
swift |
1.73 |
<xsl:if test="/mainpage/@id='news'"> |
406 |
neysx |
1.149 |
<br/><br/> |
407 |
swift |
1.73 |
Older News:<br/> |
408 |
neysx |
1.146 |
<xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()>$newsitemcount][position()<20]/text()"> |
409 |
swift |
1.73 |
<xsl:variable name="newsuri" select="."/> |
410 |
neysx |
1.146 |
<a class="altlink" href="{$newsuri}"><xsl:value-of select="document(.)/news/title"/></a> |
411 |
|
|
<br/> |
412 |
swift |
1.73 |
</xsl:for-each> |
413 |
swift |
1.61 |
</xsl:if> |
414 |
neysx |
1.181 |
--> |
415 |
swift |
1.73 |
</p> |
416 |
|
|
<br/><br /> |
417 |
|
|
</td> |
418 |
|
|
</tr> |
419 |
|
|
</table> |
420 |
|
|
</td> |
421 |
|
|
</tr> |
422 |
|
|
</table> |
423 |
|
|
</td> |
424 |
neysx |
1.146 |
<!-- Content below top menu and between left menu and ads --> |
425 |
|
|
<td valign="top" bgcolor="#ffffff"> |
426 |
swift |
1.73 |
<xsl:choose> |
427 |
|
|
<xsl:when test="/mainpage/@id='news'"> |
428 |
neysx |
1.146 |
<p class="news"> |
429 |
neysx |
1.151 |
<img class="newsicon" src="/images/gentoo-new.gif" alt="Gentoo logo"/> |
430 |
neysx |
1.149 |
<span class="newsitem" lang="en">We produce Gentoo Linux, a special flavor of Linux that |
431 |
neysx |
1.146 |
can be automatically optimized and customized for just |
432 |
|
|
about any application or need. Extreme performance, |
433 |
|
|
configurability and a top-notch user and developer |
434 |
|
|
community are all hallmarks of the Gentoo experience. |
435 |
|
|
To learn more, read our <b><a href="/main/en/about.xml">about |
436 |
|
|
page</a></b>.</span> |
437 |
|
|
</p> |
438 |
|
|
<xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()<=$newsitemcount]/text()"> |
439 |
neysx |
1.154 |
<xsl:call-template name="newscontent"> |
440 |
|
|
<xsl:with-param name="thenews" select="document(.)/news"/> |
441 |
|
|
<xsl:with-param name="summary" select="'yes'"/> |
442 |
|
|
<xsl:with-param name="link" select="."/> |
443 |
|
|
</xsl:call-template> |
444 |
neysx |
1.146 |
</xsl:for-each> |
445 |
neysx |
1.181 |
<!-- Links to older news below news items --> |
446 |
|
|
<div class="news"> |
447 |
|
|
<p class="newshead" lang="en"> |
448 |
|
|
<b>Older News</b> |
449 |
|
|
</p> |
450 |
|
|
<ul> |
451 |
|
|
<xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()>$newsitemcount][position()<20]/text()"> |
452 |
|
|
<xsl:variable name="newsuri" select="."/> |
453 |
|
|
<li><b><a class="altlink" href="{$newsuri}"><xsl:value-of select="document(.)/news/title"/></a></b></li> |
454 |
|
|
</xsl:for-each> |
455 |
|
|
</ul> |
456 |
|
|
</div> |
457 |
swift |
1.73 |
</xsl:when> |
458 |
|
|
<xsl:when test="/news"> |
459 |
neysx |
1.154 |
<xsl:call-template name="newscontent"> |
460 |
|
|
<xsl:with-param name="thenews" select="/news"/> |
461 |
|
|
<xsl:with-param name="summary" select="no"/> |
462 |
|
|
</xsl:call-template> |
463 |
swift |
1.73 |
</xsl:when> |
464 |
|
|
</xsl:choose> |
465 |
neysx |
1.146 |
<br/> |
466 |
|
|
<table border="0" class="content"> |
467 |
klieber |
1.107 |
<tr> |
468 |
|
|
<td> |
469 |
neysx |
1.146 |
<xsl:apply-templates select="chapter"/> |
470 |
klieber |
1.107 |
</td> |
471 |
|
|
</tr> |
472 |
neysx |
1.146 |
</table> |
473 |
|
|
<br/> |
474 |
|
|
<xsl:if test="/mainpage/license"> |
475 |
|
|
<xsl:apply-templates select="license" /> |
476 |
|
|
</xsl:if> |
477 |
|
|
<br/> |
478 |
|
|
<!--content end--> |
479 |
swift |
1.73 |
</td> |
480 |
neysx |
1.146 |
<td width="1%" bgcolor="#dddaec" valign="top"> |
481 |
|
|
<xsl:call-template name="rhcol"/> |
482 |
swift |
1.73 |
</td> |
483 |
|
|
</tr> |
484 |
neysx |
1.149 |
<tr lang="en"> |
485 |
neysx |
1.146 |
<td align="right" class="infohead" colspan="3"> |
486 |
neysx |
1.181 |
Copyright 2001-<xsl:value-of select="substring(func:today(),1,4)"/> Gentoo Foundation, Inc. Questions, Comments? <a class="highlight" href="/main/en/contact.xml">Contact us</a>. |
487 |
swift |
1.73 |
</td> |
488 |
|
|
</tr> |
489 |
drobbins |
1.1 |
</table> |
490 |
swift |
1.73 |
|
491 |
|
|
</body> |
492 |
neysx |
1.165 |
</html> |
493 |
swift |
1.73 |
</xsl:template> |
494 |
|
|
|
495 |
|
|
<!-- Mail template --> |
496 |
|
|
<xsl:template match="mail"> |
497 |
neysx |
1.156 |
<a> |
498 |
|
|
<xsl:attribute name="href"> |
499 |
|
|
<xsl:choose> |
500 |
|
|
<xsl:when test="@link"> |
501 |
|
|
<xsl:value-of select="concat('mailto:', @link)"/> |
502 |
|
|
</xsl:when> |
503 |
|
|
<xsl:otherwise> |
504 |
|
|
<xsl:value-of select="concat('mailto:', .)"/> |
505 |
|
|
</xsl:otherwise> |
506 |
|
|
</xsl:choose> |
507 |
|
|
</xsl:attribute> |
508 |
|
|
<xsl:value-of select="."/> |
509 |
|
|
</a> |
510 |
|
|
|
511 |
swift |
1.73 |
</xsl:template> |
512 |
|
|
|
513 |
|
|
<!-- Mail inside <author>...</author> --> |
514 |
|
|
<xsl:template match="/guide/author/mail|/book/author/mail"> |
515 |
|
|
<b> |
516 |
|
|
<a class="altlink" href="mailto:{@link}"><xsl:value-of select="."/></a> |
517 |
|
|
</b> |
518 |
|
|
</xsl:template> |
519 |
|
|
|
520 |
|
|
<!-- Author --> |
521 |
|
|
<xsl:template match="author"> |
522 |
|
|
<xsl:apply-templates/> |
523 |
neysx |
1.146 |
<xsl:if test="@title"> |
524 |
|
|
<xsl:if test="$style != 'printable'"> |
525 |
|
|
<br/> |
526 |
|
|
</xsl:if> |
527 |
|
|
<xsl:if test="$style = 'printable'"> </xsl:if> |
528 |
|
|
<i><xsl:value-of select="@title"/></i> |
529 |
|
|
</xsl:if> |
530 |
swift |
1.73 |
<br/> |
531 |
neysx |
1.146 |
<xsl:if test="$style != 'printable' and position()!=last()"> |
532 |
|
|
<br/> |
533 |
|
|
</xsl:if> |
534 |
swift |
1.73 |
</xsl:template> |
535 |
|
|
|
536 |
|
|
<!-- Chapter --> |
537 |
|
|
<xsl:template match="chapter"> |
538 |
neysx |
1.176 |
<xsl:variable name="chid"><xsl:number/></xsl:variable> |
539 |
|
|
<xsl:choose> |
540 |
|
|
<xsl:when test="title"> |
541 |
swift |
1.73 |
<p class="chaphead"> |
542 |
neysx |
1.176 |
<xsl:if test="@id"><a name="{@id}"/></xsl:if> |
543 |
|
|
<a name="doc_chap{$chid}"/> |
544 |
|
|
<xsl:if test="not(/mainpage) and count(//chapter)>1"> |
545 |
|
|
<span class="chapnum"><xsl:number/>. </span> |
546 |
|
|
</xsl:if> |
547 |
|
|
<xsl:value-of select="title"/> |
548 |
drobbins |
1.1 |
</p> |
549 |
neysx |
1.176 |
</xsl:when> |
550 |
|
|
<xsl:otherwise> |
551 |
|
|
<xsl:if test="/guide"> |
552 |
|
|
<p class="chaphead"> |
553 |
|
|
<span class="chapnum"> |
554 |
|
|
<a name="doc_chap{$chid}"><xsl:number/>.</a> |
555 |
|
|
</span> |
556 |
|
|
</p> |
557 |
|
|
</xsl:if> |
558 |
|
|
</xsl:otherwise> |
559 |
|
|
</xsl:choose> |
560 |
|
|
<xsl:apply-templates select="body"> |
561 |
|
|
<xsl:with-param name="chid" select="$chid"/> |
562 |
|
|
</xsl:apply-templates> |
563 |
|
|
<xsl:apply-templates select="section"> |
564 |
|
|
<xsl:with-param name="chid" select="$chid"/> |
565 |
|
|
</xsl:apply-templates> |
566 |
swift |
1.73 |
</xsl:template> |
567 |
|
|
|
568 |
|
|
|
569 |
|
|
<!-- Section template --> |
570 |
|
|
<xsl:template match="section"> |
571 |
|
|
<xsl:param name="chid"/> |
572 |
|
|
<xsl:if test="title"> |
573 |
|
|
<xsl:variable name="sectid">doc_chap<xsl:value-of select="$chid"/>_sect<xsl:number/></xsl:variable> |
574 |
swift |
1.105 |
<xsl:if test="@id"> |
575 |
|
|
<a name="{@id}"/> |
576 |
|
|
</xsl:if> |
577 |
swift |
1.73 |
<p class="secthead"> |
578 |
neysx |
1.132 |
<a name="{$sectid}"><xsl:value-of select="title"/></a> |
579 |
swift |
1.73 |
</p> |
580 |
swift |
1.86 |
</xsl:if> |
581 |
swift |
1.73 |
<xsl:apply-templates select="body"> |
582 |
|
|
<xsl:with-param name="chid" select="$chid"/> |
583 |
|
|
</xsl:apply-templates> |
584 |
|
|
</xsl:template> |
585 |
|
|
|
586 |
|
|
<!-- Figure template --> |
587 |
|
|
<xsl:template match="figure"> |
588 |
|
|
<xsl:param name="chid"/> |
589 |
swift |
1.96 |
<xsl:variable name="fignum"><xsl:number level="any" from="chapter" count="figure"/></xsl:variable> |
590 |
swift |
1.73 |
<xsl:variable name="figid">doc_chap<xsl:value-of select="$chid"/>_fig<xsl:value-of select="$fignum"/></xsl:variable> |
591 |
neysx |
1.146 |
<xsl:variable name="llink"> |
592 |
|
|
<xsl:choose> |
593 |
|
|
<xsl:when test="starts-with(@link,'http://www.gentoo.org/')"> |
594 |
|
|
<xsl:value-of select="substring-after(@link, 'http://www.gentoo.org')"/> |
595 |
|
|
</xsl:when> |
596 |
|
|
<xsl:otherwise> |
597 |
|
|
<xsl:value-of select="@link"/> |
598 |
|
|
</xsl:otherwise> |
599 |
|
|
</xsl:choose> |
600 |
|
|
</xsl:variable> |
601 |
swift |
1.73 |
<br/> |
602 |
|
|
<a name="{$figid}"/> |
603 |
|
|
<table cellspacing="0" cellpadding="0" border="0"> |
604 |
|
|
<tr> |
605 |
neysx |
1.146 |
<td bgcolor="#7a5ada"> |
606 |
|
|
<p class="codetitle"> |
607 |
swift |
1.73 |
<xsl:choose> |
608 |
|
|
<xsl:when test="@caption"> |
609 |
neysx |
1.123 |
<xsl:value-of select="func:gettext('Figure')"/> <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/><xsl:value-of select="func:gettext('SpaceBeforeColon')"/>: <xsl:value-of select="@caption"/> |
610 |
swift |
1.73 |
</xsl:when> |
611 |
|
|
<xsl:otherwise> |
612 |
neysx |
1.123 |
<xsl:value-of select="func:gettext('Figure')"/> <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/> |
613 |
swift |
1.73 |
</xsl:otherwise> |
614 |
|
|
</xsl:choose> |
615 |
drobbins |
1.1 |
</p> |
616 |
swift |
1.73 |
</td> |
617 |
|
|
</tr> |
618 |
|
|
<tr> |
619 |
|
|
<td align="center" bgcolor="#ddddff"> |
620 |
drobbins |
1.1 |
<xsl:choose> |
621 |
swift |
1.73 |
<xsl:when test="@short"> |
622 |
neysx |
1.146 |
<img src="{$llink}" alt="Fig. {$fignum}: {@short}"/> |
623 |
drobbins |
1.1 |
</xsl:when> |
624 |
|
|
<xsl:otherwise> |
625 |
neysx |
1.146 |
<img src="{$llink}" alt="Fig. {$fignum}"/> |
626 |
drobbins |
1.1 |
</xsl:otherwise> |
627 |
|
|
</xsl:choose> |
628 |
swift |
1.73 |
</td> |
629 |
|
|
</tr> |
630 |
|
|
</table> |
631 |
|
|
<br/> |
632 |
|
|
</xsl:template> |
633 |
|
|
|
634 |
|
|
<!--figure without a caption; just a graphical element--> |
635 |
|
|
<xsl:template match="fig"> |
636 |
|
|
<center> |
637 |
|
|
<xsl:choose> |
638 |
|
|
<xsl:when test="@linkto"> |
639 |
|
|
<a href="{@linkto}"><img border="0" src="{@link}" alt="{@short}"/></a> |
640 |
|
|
</xsl:when> |
641 |
|
|
<xsl:otherwise> |
642 |
|
|
<img src="{@link}" alt="{@short}"/> |
643 |
|
|
</xsl:otherwise> |
644 |
|
|
</xsl:choose> |
645 |
|
|
</center> |
646 |
|
|
</xsl:template> |
647 |
|
|
|
648 |
|
|
<!-- Line break --> |
649 |
|
|
<xsl:template match="br"> |
650 |
|
|
<br/> |
651 |
|
|
</xsl:template> |
652 |
|
|
|
653 |
|
|
<!-- Note --> |
654 |
|
|
<xsl:template match="note"> |
655 |
|
|
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"> |
656 |
|
|
<tr> |
657 |
|
|
<td bgcolor="#bbffbb"> |
658 |
|
|
<p class="note"> |
659 |
neysx |
1.123 |
<b><xsl:value-of select="func:gettext('Note')"/>: </b> |
660 |
swift |
1.73 |
<xsl:apply-templates/> |
661 |
|
|
</p> |
662 |
|
|
</td> |
663 |
|
|
</tr> |
664 |
|
|
</table> |
665 |
|
|
</xsl:template> |
666 |
|
|
|
667 |
|
|
<!-- Important item --> |
668 |
|
|
<xsl:template match="impo"> |
669 |
|
|
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"> |
670 |
|
|
<tr> |
671 |
|
|
<td bgcolor="#ffffbb"> |
672 |
|
|
<p class="note"> |
673 |
neysx |
1.123 |
<b><xsl:value-of select="func:gettext('Important')"/>: </b> |
674 |
swift |
1.73 |
<xsl:apply-templates/> |
675 |
|
|
</p> |
676 |
|
|
</td> |
677 |
|
|
</tr> |
678 |
|
|
</table> |
679 |
|
|
</xsl:template> |
680 |
|
|
|
681 |
|
|
<!-- Warning --> |
682 |
|
|
<xsl:template match="warn"> |
683 |
|
|
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0"> |
684 |
|
|
<tr> |
685 |
|
|
<td bgcolor="#ffbbbb"> |
686 |
|
|
<p class="note"> |
687 |
neysx |
1.123 |
<b><xsl:value-of select="func:gettext('Warning')"/>: </b> |
688 |
drobbins |
1.1 |
<xsl:apply-templates/> |
689 |
swift |
1.73 |
</p> |
690 |
|
|
</td> |
691 |
|
|
</tr> |
692 |
|
|
</table> |
693 |
|
|
</xsl:template> |
694 |
|
|
|
695 |
|
|
<!-- Code note --> |
696 |
|
|
<xsl:template match="codenote"> |
697 |
neysx |
1.146 |
<span class="comment"> |
698 |
|
|
<xsl:if test='not(starts-with(., "("))'>(</xsl:if> |
699 |
|
|
<xsl:apply-templates/> |
700 |
|
|
<xsl:if test='not(starts-with(., "("))'>)</xsl:if> |
701 |
|
|
</span> |
702 |
swift |
1.73 |
</xsl:template> |
703 |
|
|
|
704 |
|
|
<!-- Regular comment --> |
705 |
|
|
<xsl:template match="comment"> |
706 |
neysx |
1.172 |
<span class="code-comment"><xsl:apply-templates/></span> |
707 |
swift |
1.73 |
</xsl:template> |
708 |
|
|
|
709 |
neysx |
1.172 |
<!-- Colour coding inside <pre> --> |
710 |
swift |
1.73 |
<xsl:template match="i"> |
711 |
neysx |
1.172 |
<span class="code-input"><xsl:apply-templates/></span> |
712 |
|
|
</xsl:template> |
713 |
|
|
|
714 |
|
|
<xsl:template match="var"> |
715 |
|
|
<span class="code-variable"><xsl:apply-templates/></span> |
716 |
|
|
</xsl:template> |
717 |
|
|
|
718 |
|
|
<xsl:template match="ident"> |
719 |
|
|
<span class="code-identifier"><xsl:apply-templates/></span> |
720 |
swift |
1.73 |
</xsl:template> |
721 |
|
|
|
722 |
neysx |
1.172 |
<xsl:template match="keyword"> |
723 |
|
|
<span class="code-keyword"><xsl:apply-templates/></span> |
724 |
|
|
</xsl:template> |
725 |
|
|
|
726 |
|
|
<xsl:template match="stmt"> |
727 |
|
|
<span class="code-statement"><xsl:apply-templates/></span> |
728 |
|
|
</xsl:template> |
729 |
|
|
|
730 |
|
|
<xsl:template match="const"> |
731 |
|
|
<span class="code-constant"><xsl:apply-templates/></span> |
732 |
|
|
</xsl:template> |
733 |
|
|
|
734 |
|
|
|
735 |
swift |
1.73 |
<!-- Bold --> |
736 |
|
|
<xsl:template match="b"> |
737 |
|
|
<b><xsl:apply-templates/></b> |
738 |
|
|
</xsl:template> |
739 |
|
|
|
740 |
neysx |
1.166 |
<!-- Superscript --> |
741 |
|
|
<xsl:template match="sup"> |
742 |
|
|
<sup><xsl:apply-templates/></sup> |
743 |
|
|
</xsl:template> |
744 |
|
|
|
745 |
|
|
<!-- Subscript --> |
746 |
|
|
<xsl:template match="sub"> |
747 |
|
|
<sub><xsl:apply-templates/></sub> |
748 |
|
|
</xsl:template> |
749 |
|
|
|
750 |
swift |
1.73 |
<!-- Brite --> |
751 |
|
|
<xsl:template match="brite"> |
752 |
|
|
<font color="#ff0000"> |
753 |
|
|
<b><xsl:apply-templates/></b> |
754 |
|
|
</font> |
755 |
|
|
</xsl:template> |
756 |
|
|
|
757 |
|
|
<!-- Body --> |
758 |
|
|
<xsl:template match="body"> |
759 |
|
|
<xsl:param name="chid"/> |
760 |
|
|
<xsl:apply-templates> |
761 |
|
|
<xsl:with-param name="chid" select="$chid"/> |
762 |
|
|
</xsl:apply-templates> |
763 |
|
|
</xsl:template> |
764 |
|
|
|
765 |
|
|
<!-- Command or input, not to use inside <pre> --> |
766 |
|
|
<xsl:template match="c"> |
767 |
|
|
<span class="code"><xsl:apply-templates/></span> |
768 |
|
|
</xsl:template> |
769 |
|
|
|
770 |
|
|
<!-- Preserve whitespace, aka Code Listing --> |
771 |
|
|
<xsl:template match="pre"> |
772 |
|
|
<xsl:param name="chid"/> |
773 |
|
|
<xsl:variable name="prenum"><xsl:number level="any" from="chapter" count="pre"/></xsl:variable> |
774 |
|
|
<xsl:variable name="preid">doc_chap<xsl:value-of select="$chid"/>_pre<xsl:value-of select="$prenum"/></xsl:variable> |
775 |
|
|
<a name="{$preid}"/> |
776 |
|
|
<table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0"> |
777 |
|
|
<tr> |
778 |
neysx |
1.146 |
<td bgcolor="#7a5ada"> |
779 |
|
|
<p class="codetitle"> |
780 |
neysx |
1.139 |
<xsl:value-of select="func:gettext('CodeListing')"/> <xsl:if test="$chid"><xsl:value-of select="$chid"/>.</xsl:if><xsl:value-of select="$prenum"/> |
781 |
|
|
<xsl:if test="@caption"> |
782 |
|
|
<xsl:value-of select="func:gettext('SpaceBeforeColon')"/>: <xsl:value-of select="@caption"/> |
783 |
|
|
</xsl:if> |
784 |
swift |
1.73 |
</p> |
785 |
drobbins |
1.1 |
</td> |
786 |
swift |
1.73 |
</tr> |
787 |
|
|
<tr> |
788 |
neysx |
1.172 |
<td bgcolor="#eeeeff"> |
789 |
swift |
1.73 |
<pre> |
790 |
drobbins |
1.1 |
<xsl:apply-templates/> |
791 |
swift |
1.73 |
</pre> |
792 |
drobbins |
1.1 |
</td> |
793 |
swift |
1.73 |
</tr> |
794 |
|
|
</table> |
795 |
|
|
</xsl:template> |
796 |
|
|
|
797 |
|
|
<!-- Path --> |
798 |
|
|
<xsl:template match="path"> |
799 |
|
|
<span class="path"><xsl:value-of select="."/></span> |
800 |
|
|
</xsl:template> |
801 |
|
|
|
802 |
|
|
<!-- Url --> |
803 |
|
|
<xsl:template match="uri"> |
804 |
neysx |
1.165 |
<xsl:param name="paramlink"/> |
805 |
swift |
1.73 |
<!-- expand templates to handle things like <uri link="http://bar"><c>foo</c></uri> --> |
806 |
|
|
<xsl:choose> |
807 |
|
|
<xsl:when test="@link"> |
808 |
swift |
1.87 |
<xsl:choose> |
809 |
neysx |
1.147 |
<xsl:when test="($TTOP = 'sections') and (starts-with(@link, '?'))"> |
810 |
|
|
<!-- Handbook link pointing to another part/chapter when viewing a single page, |
811 |
|
|
cannot be a link because we have no idea where to link to |
812 |
|
|
Besides, we have no way of knowing the language unless told via a param --> |
813 |
|
|
<xsl:variable name="nolink"><xsl:value-of select="func:gettext('hb_file', $glang)"/></xsl:variable> |
814 |
|
|
<span title="{$nolink}"><font color="#404080">(<xsl:apply-templates/>)</font></span> |
815 |
|
|
</xsl:when> |
816 |
swift |
1.96 |
<xsl:when test="($TTOP = 'book') and ($full = 0) and (starts-with(@link, '?'))"> |
817 |
neysx |
1.112 |
<!-- Handbook link pointing to another part/chapter, normal case --> |
818 |
neysx |
1.146 |
<xsl:choose> |
819 |
|
|
<xsl:when test="$style != 'printable'"> |
820 |
|
|
<a href="{$LINK}{@link}"><xsl:apply-templates/></a> |
821 |
|
|
</xsl:when> |
822 |
|
|
<xsl:otherwise> |
823 |
|
|
<a href="{$LINK}{@link}&style=printable"><xsl:apply-templates/></a> |
824 |
|
|
</xsl:otherwise> |
825 |
|
|
</xsl:choose> |
826 |
swift |
1.96 |
</xsl:when> |
827 |
|
|
<xsl:when test="($TTOP = 'book') and ($full = 1) and (starts-with(@link, '?'))"> |
828 |
blackace |
1.98 |
<!-- Handbook link pointing to another part/chapter |
829 |
swift |
1.96 |
Handbook is being rendered in a single page (full=1) |
830 |
neysx |
1.112 |
Hence link needs to be rewritten as a local one |
831 |
neysx |
1.147 |
i.e. ?part=1&chap=3#doc_chap1 must become #book_part1_chap3__chap1 Case 1a |
832 |
|
|
i.e. ?part=1&chap=3#anID must become #anID Case 1b |
833 |
neysx |
1.112 |
or ?part=1&chap=3 must become #book_part1_chap3 Case 2 |
834 |
|
|
or ?part=2 must become #book_part2 Case 3--> |
835 |
swift |
1.96 |
<xsl:choose> |
836 |
neysx |
1.112 |
<xsl:when test="contains(@link, 'chap=') and contains(@link, '#doc_')"> |
837 |
neysx |
1.147 |
<!-- Link points inside a chapter (Case 1a)--> |
838 |
neysx |
1.112 |
<xsl:param name="linkpart" select="substring-after(substring-before(@link, '&'), '=')" /> |
839 |
|
|
<xsl:param name="linkchap" select="substring-before(substring-after(substring-after(@link, '&'), '='), '#doc_')" /> |
840 |
|
|
<xsl:param name="linkanch" select="substring-after(@link, '#doc_')" /> |
841 |
|
|
<a href="#book_part{$linkpart}_chap{$linkchap}__{$linkanch}"><xsl:apply-templates /></a> |
842 |
|
|
</xsl:when> |
843 |
neysx |
1.147 |
<xsl:when test="contains(@link, 'chap=') and contains(@link, '#')"> |
844 |
|
|
<!-- Link points inside a chapter via an ID (Case 1b) |
845 |
|
|
(IDs are expected to be unique throughout a handbook) --> |
846 |
|
|
<xsl:param name="linkanch" select="substring-after(@link, '#')" /> |
847 |
|
|
<a href="#{$linkanch}"><xsl:apply-templates /></a> |
848 |
|
|
</xsl:when> |
849 |
neysx |
1.112 |
<xsl:when test="contains(@link, 'chap=')"> |
850 |
|
|
<!-- Link points to a chapter (Case 2)--> |
851 |
swift |
1.96 |
<xsl:param name="linkpart" select="substring-after(substring-before(@link, '&'), '=')" /> |
852 |
|
|
<xsl:param name="linkchap" select="substring-after(substring-after(@link, '&'), '=')" /> |
853 |
|
|
<a href="#book_part{$linkpart}_chap{$linkchap}"><xsl:apply-templates /></a> |
854 |
|
|
</xsl:when> |
855 |
|
|
<xsl:otherwise> |
856 |
neysx |
1.112 |
<!-- Link points to a part (Case 3)--> |
857 |
swift |
1.96 |
<xsl:param name="linkpart" select="substring-after(@link, '=')" /> |
858 |
|
|
<a href="#book_part{$linkpart}"><xsl:apply-templates/></a> |
859 |
|
|
</xsl:otherwise> |
860 |
|
|
</xsl:choose> |
861 |
|
|
</xsl:when> |
862 |
|
|
<xsl:when test="($TTOP = 'book') and ($full = 1) and (starts-with(@link, '#'))"> |
863 |
neysx |
1.147 |
<!-- Handbook link pointing to another place in same part/chapter |
864 |
swift |
1.96 |
Handbook is being rendered in a single page (full=1) |
865 |
blackace |
1.98 |
Hence link needs to be rewritten as an internal one that is unique |
866 |
swift |
1.96 |
for the whole handbook, i.e. |
867 |
|
|
#doc_part1_chap3 becomes #book_{UNIQUEID}_part1_chap3, but |
868 |
neysx |
1.147 |
#anything_else_like_an_ID is left unchanged (IDs are expected to be unique throughout a handbook)--> |
869 |
swift |
1.96 |
<xsl:choose> |
870 |
|
|
<xsl:when test="starts-with(@link, '#doc_')"> |
871 |
|
|
<xsl:param name="locallink" select="substring-after(@link, 'doc_')" /> |
872 |
|
|
<a href="#book_{generate-id(/)}_{$locallink}"><xsl:apply-templates /></a> |
873 |
|
|
</xsl:when> |
874 |
|
|
<xsl:otherwise> |
875 |
|
|
<a href="{@link}"><xsl:apply-templates/></a> |
876 |
|
|
</xsl:otherwise> |
877 |
|
|
</xsl:choose> |
878 |
swift |
1.87 |
</xsl:when> |
879 |
|
|
<xsl:otherwise> |
880 |
neysx |
1.165 |
<xsl:variable name="theurl"> |
881 |
|
|
<xsl:choose> |
882 |
|
|
<xsl:when test="@link"><xsl:value-of select="@link" /></xsl:when> |
883 |
|
|
<xsl:otherwise><xsl:value-of select="text()" /></xsl:otherwise> |
884 |
|
|
</xsl:choose> |
885 |
|
|
</xsl:variable> |
886 |
|
|
|
887 |
|
|
<xsl:variable name="thelink"> |
888 |
|
|
<xsl:choose> |
889 |
|
|
<xsl:when test="name(..)='insert' and $theurl='$redirect' and $paramlink"><xsl:value-of select="$paramlink" /></xsl:when> |
890 |
|
|
<xsl:when test="name(..)='insert' and $theurl='$originalversion' and $paramlink"> |
891 |
|
|
<xsl:variable name="temp"> |
892 |
|
|
<xsl:value-of select="$paramlink"/> |
893 |
|
|
<xsl:if test="$style = 'printable'">&style=printable</xsl:if> |
894 |
|
|
<xsl:if test="$full != '0'">&full=1</xsl:if> |
895 |
|
|
<xsl:if test="$part != '0'">&part=<xsl:value-of select="$part"/></xsl:if> |
896 |
|
|
<xsl:if test="$chap != '0'">&chap=<xsl:value-of select="$chap"/></xsl:if> |
897 |
|
|
</xsl:variable> |
898 |
|
|
<xsl:choose> |
899 |
|
|
<xsl:when test="contains($temp, '&')"> |
900 |
|
|
<xsl:value-of select="concat(substring-before($temp,'&'), '?', substring-after($temp,'&'))"/> |
901 |
|
|
</xsl:when> |
902 |
|
|
<xsl:otherwise> |
903 |
|
|
<xsl:value-of select="$temp"/> |
904 |
|
|
</xsl:otherwise> |
905 |
|
|
</xsl:choose> |
906 |
|
|
</xsl:when> |
907 |
|
|
<xsl:otherwise><xsl:value-of select="$theurl" /></xsl:otherwise> |
908 |
|
|
</xsl:choose> |
909 |
|
|
</xsl:variable> |
910 |
|
|
|
911 |
neysx |
1.159 |
<!-- Strip http://www.gentoo.org from links |
912 |
|
|
Has no effect on actual www.g.o but helps when surfing on a local copy |
913 |
neysx |
1.180 |
Rewrite http://www.gentoo.org/cgi-bin/viewcvs/ to use sources.gentoo.org/ |
914 |
neysx |
1.159 |
--> |
915 |
neysx |
1.146 |
<xsl:variable name="llink"> |
916 |
|
|
<xsl:choose> |
917 |
neysx |
1.180 |
<xsl:when test="starts-with($thelink, 'http://www.gentoo.org/cgi-bin/viewcvs.cgi')"><xsl:value-of select="concat('http://sources.gentoo.org/viewcvs.py', substring-after($thelink, 'http://www.gentoo.org/cgi-bin/viewcvs.cgi'))" /></xsl:when> |
918 |
|
|
<xsl:when test="starts-with($thelink, '/cgi-bin/viewcvs.cgi')"><xsl:value-of select="concat('http://sources.gentoo.org/viewcvs.py', substring-after($thelink, '/cgi-bin/viewcvs.cgi'))" /></xsl:when> |
919 |
neysx |
1.165 |
<xsl:when test="starts-with($thelink, 'http://www.gentoo.org/')"><xsl:value-of select="substring-after($thelink, 'http://www.gentoo.org')" /></xsl:when> |
920 |
neysx |
1.163 |
<!-- Add catid to links to /doc/LL/index.xml --> |
921 |
neysx |
1.165 |
<xsl:when test="$catid != '0' and starts-with($thelink, '/doc/') and (substring-after(substring-after($thelink, '/doc/'), '/')='' or substring-after(substring-after($thelink, '/doc/'), '/')='index.xml')"> |
922 |
|
|
<xsl:value-of select="concat($thelink, '?catid=', $catid)"/> |
923 |
neysx |
1.163 |
</xsl:when> |
924 |
neysx |
1.165 |
<xsl:otherwise><xsl:value-of select="$thelink" /></xsl:otherwise> |
925 |
neysx |
1.146 |
</xsl:choose> |
926 |
|
|
</xsl:variable> |
927 |
|
|
|
928 |
|
|
<!-- Now, insert style=printable in the URL if necessary --> |
929 |
|
|
<xsl:variable name="alink"> |
930 |
|
|
<xsl:choose> |
931 |
|
|
<xsl:when test="$style != 'printable' or contains($llink, 'style=printable')"> |
932 |
|
|
<!-- Not printable style or style=printable already in URL, copy link --> |
933 |
|
|
<xsl:value-of select="$llink" /> |
934 |
|
|
</xsl:when> |
935 |
|
|
<xsl:when test="contains($llink, '://')"> |
936 |
|
|
<!-- External link, copy link --> |
937 |
|
|
<xsl:value-of select="$llink" /> |
938 |
|
|
</xsl:when> |
939 |
|
|
<xsl:when test="starts-with($llink, '#')"> |
940 |
|
|
<!-- Anchor, copy link --> |
941 |
|
|
<xsl:value-of select="$llink" /> |
942 |
|
|
</xsl:when> |
943 |
|
|
<xsl:otherwise> |
944 |
|
|
<!-- We should have eliminated all other cases, |
945 |
|
|
style printable, local link, then insert ?style=printable --> |
946 |
|
|
<xsl:choose> |
947 |
|
|
<xsl:when test="starts-with($llink, '?')"> |
948 |
|
|
<xsl:value-of select="concat( '?style=printable&', substring-after($llink, '?'))" /> |
949 |
|
|
</xsl:when> |
950 |
|
|
<xsl:when test="contains($llink, '.xml?')"> |
951 |
|
|
<xsl:value-of select="concat(substring-before($llink, '.xml?'), '.xml?style=printable&', substring-after($llink, '.xml?'))" /> |
952 |
|
|
</xsl:when> |
953 |
|
|
<xsl:when test="contains($llink, '.xml#')"> |
954 |
|
|
<xsl:value-of select="concat(substring-before($llink, '.xml#'), '.xml?style=printable#', substring-after($llink, '.xml#'))" /> |
955 |
|
|
</xsl:when> |
956 |
|
|
<xsl:when test="substring-after($llink, '.xml') = ''"> |
957 |
|
|
<xsl:value-of select="concat($llink, '?style=printable')" /> |
958 |
|
|
</xsl:when> |
959 |
|
|
<xsl:otherwise> |
960 |
|
|
<!-- Have I forgotten anything? |
961 |
|
|
Copy link --> |
962 |
|
|
<xsl:value-of select="$llink" /> |
963 |
|
|
</xsl:otherwise> |
964 |
|
|
</xsl:choose> |
965 |
|
|
</xsl:otherwise> |
966 |
|
|
</xsl:choose> |
967 |
|
|
</xsl:variable> |
968 |
|
|
<a href="{$alink}"><xsl:apply-templates/></a> |
969 |
swift |
1.87 |
</xsl:otherwise> |
970 |
|
|
</xsl:choose> |
971 |
swift |
1.73 |
</xsl:when> |
972 |
|
|
<xsl:otherwise> |
973 |
|
|
<xsl:variable name="loc" select="."/> |
974 |
|
|
<a href="{$loc}"><xsl:apply-templates/></a> |
975 |
|
|
</xsl:otherwise> |
976 |
|
|
</xsl:choose> |
977 |
|
|
</xsl:template> |
978 |
|
|
|
979 |
|
|
<!-- Paragraph --> |
980 |
|
|
<xsl:template match="p"> |
981 |
|
|
<xsl:param name="chid"/> |
982 |
neysx |
1.166 |
<p> |
983 |
|
|
<!-- Keep this for old files with <p class="secthead"> --> |
984 |
|
|
<xsl:if test="@class"> |
985 |
|
|
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute> |
986 |
|
|
</xsl:if> |
987 |
|
|
|
988 |
|
|
<xsl:if test="@by"> |
989 |
|
|
<xsl:attribute name="class">epigraph</xsl:attribute> |
990 |
|
|
</xsl:if> |
991 |
|
|
|
992 |
|
|
<xsl:apply-templates> |
993 |
|
|
<xsl:with-param name="chid" select="$chid"/> |
994 |
|
|
</xsl:apply-templates> |
995 |
|
|
|
996 |
|
|
<xsl:if test="@by"> |
997 |
|
|
<br/><br/><span class="episig">—<xsl:value-of select="@by"/></span><br/><br/> |
998 |
|
|
</xsl:if> |
999 |
|
|
</p> |
1000 |
swift |
1.73 |
</xsl:template> |
1001 |
|
|
|
1002 |
|
|
<!-- Emphasize --> |
1003 |
|
|
<xsl:template match="e"> |
1004 |
|
|
<span class="emphasis"><xsl:apply-templates/></span> |
1005 |
|
|
</xsl:template> |
1006 |
|
|
|
1007 |
|
|
<!-- Table --> |
1008 |
|
|
<xsl:template match="table"> |
1009 |
|
|
<table class="ntable"> |
1010 |
|
|
<xsl:apply-templates/> |
1011 |
|
|
</table> |
1012 |
|
|
</xsl:template> |
1013 |
|
|
|
1014 |
|
|
<!-- Table Row --> |
1015 |
|
|
<xsl:template match="tr"> |
1016 |
|
|
<tr> |
1017 |
neysx |
1.158 |
<xsl:if test="@id"> |
1018 |
|
|
<xsl:attribute name="id"> |
1019 |
|
|
<xsl:value-of select="@id"/> |
1020 |
|
|
</xsl:attribute> |
1021 |
|
|
</xsl:if> |
1022 |
swift |
1.73 |
<xsl:apply-templates/> |
1023 |
|
|
</tr> |
1024 |
|
|
</xsl:template> |
1025 |
|
|
|
1026 |
neysx |
1.169 |
<xsl:template match="tcolumn"> |
1027 |
|
|
<col width="{@width}"/> |
1028 |
|
|
</xsl:template> |
1029 |
|
|
|
1030 |
swift |
1.73 |
<!-- Table Item --> |
1031 |
|
|
<xsl:template match="ti"> |
1032 |
neysx |
1.146 |
<td class="tableinfo"> |
1033 |
neysx |
1.175 |
<xsl:if test="@align='center' or @align='right'"> |
1034 |
|
|
<xsl:attribute name="style"><xsl:value-of select="concat('text-align:',@align)"/></xsl:attribute> |
1035 |
|
|
</xsl:if> |
1036 |
neysx |
1.169 |
<xsl:if test="@colspan"> |
1037 |
|
|
<xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute> |
1038 |
|
|
</xsl:if> |
1039 |
|
|
<xsl:if test="@rowspan"> |
1040 |
|
|
<xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute> |
1041 |
|
|
</xsl:if> |
1042 |
swift |
1.73 |
<xsl:apply-templates/> |
1043 |
|
|
</td> |
1044 |
|
|
</xsl:template> |
1045 |
|
|
|
1046 |
neysx |
1.166 |
<!-- Table Heading, no idea why <th> hasn't been used --> |
1047 |
swift |
1.73 |
<xsl:template match="th"> |
1048 |
neysx |
1.146 |
<td class="infohead"> |
1049 |
neysx |
1.166 |
<xsl:if test="@colspan"> |
1050 |
|
|
<xsl:attribute name="colspan"><xsl:value-of select="@colspan"/></xsl:attribute> |
1051 |
|
|
<!-- Center only when item spans several columns as |
1052 |
|
|
centering all <th> might disrupt some pages. |
1053 |
|
|
We might want to use a plain html <th> tag later. |
1054 |
|
|
Tip: to center a single-cell title, use <th colspan="1"> |
1055 |
|
|
--> |
1056 |
|
|
<xsl:attribute name="style">text-align:center</xsl:attribute> |
1057 |
|
|
</xsl:if> |
1058 |
|
|
<xsl:if test="@rowspan"> |
1059 |
|
|
<xsl:attribute name="rowspan"><xsl:value-of select="@rowspan"/></xsl:attribute> |
1060 |
|
|
</xsl:if> |
1061 |
swift |
1.73 |
<b> |
1062 |
|
|
<xsl:apply-templates/> |
1063 |
|
|
</b> |
1064 |
|
|
</td> |
1065 |
|
|
</xsl:template> |
1066 |
|
|
|
1067 |
|
|
<!-- Unnumbered List --> |
1068 |
|
|
<xsl:template match="ul"> |
1069 |
|
|
<ul> |
1070 |
|
|
<xsl:apply-templates/> |
1071 |
|
|
</ul> |
1072 |
|
|
</xsl:template> |
1073 |
|
|
|
1074 |
|
|
<!-- Ordered List --> |
1075 |
|
|
<xsl:template match="ol"> |
1076 |
|
|
<ol> |
1077 |
|
|
<xsl:apply-templates/> |
1078 |
|
|
</ol> |
1079 |
|
|
</xsl:template> |
1080 |
|
|
|
1081 |
|
|
<!-- List Item --> |
1082 |
|
|
<xsl:template match="li"> |
1083 |
|
|
<li> |
1084 |
|
|
<xsl:apply-templates/> |
1085 |
|
|
</li> |
1086 |
|
|
</xsl:template> |
1087 |
|
|
|
1088 |
neysx |
1.166 |
<!-- Definition Lists --> |
1089 |
|
|
<xsl:template match="dl"> |
1090 |
|
|
<dl><xsl:apply-templates/></dl> |
1091 |
|
|
</xsl:template> |
1092 |
|
|
|
1093 |
|
|
<xsl:template match="dt"> |
1094 |
|
|
<dt><xsl:apply-templates/></dt> |
1095 |
|
|
</xsl:template> |
1096 |
|
|
|
1097 |
|
|
<xsl:template match="dd"> |
1098 |
|
|
<dd><xsl:apply-templates/></dd> |
1099 |
|
|
</xsl:template> |
1100 |
|
|
|
1101 |
swift |
1.73 |
<!-- NOP --> |
1102 |
|
|
<xsl:template match="ignoreinemail"> |
1103 |
|
|
<xsl:apply-templates/> |
1104 |
|
|
</xsl:template> |
1105 |
|
|
|
1106 |
|
|
<!-- NOP --> |
1107 |
|
|
<xsl:template match="ignoreinguide"> |
1108 |
|
|
</xsl:template> |
1109 |
|
|
|
1110 |
|
|
<!-- License Tag --> |
1111 |
swift |
1.61 |
<xsl:template match="license"> |
1112 |
neysx |
1.146 |
<p class="copyright"> |
1113 |
neysx |
1.130 |
<xsl:apply-templates select="func:gettext('License')"/> |
1114 |
neysx |
1.146 |
</p> |
1115 |
neysx |
1.151 |
<xsl:comment> |
1116 |
|
|
<rdf:RDF xmlns="http://web.resource.org/cc/" |
1117 |
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
1118 |
neysx |
1.152 |
<License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"> |
1119 |
neysx |
1.151 |
<permits rdf:resource="http://web.resource.org/cc/Reproduction" /> |
1120 |
|
|
<permits rdf:resource="http://web.resource.org/cc/Distribution" /> |
1121 |
|
|
<requires rdf:resource="http://web.resource.org/cc/Notice" /> |
1122 |
|
|
<requires rdf:resource="http://web.resource.org/cc/Attribution" /> |
1123 |
|
|
<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> |
1124 |
|
|
<requires rdf:resource="http://web.resource.org/cc/ShareAlike" /> |
1125 |
|
|
</License> |
1126 |
|
|
</rdf:RDF> |
1127 |
|
|
</xsl:comment> |
1128 |
swift |
1.61 |
</xsl:template> |
1129 |
klieber |
1.25 |
|
1130 |
blackace |
1.98 |
<!-- GLSA Index --> |
1131 |
|
|
<xsl:template match="glsaindex"> |
1132 |
|
|
<xsl:apply-templates select="document('/dyn/glsa-index.xml')/guide/chapter[1]/section[1]/body"/> |
1133 |
|
|
</xsl:template> |
1134 |
|
|
|
1135 |
swift |
1.119 |
<!-- GLSA Latest (max 10) --> |
1136 |
|
|
<xsl:template match="glsa-latest"> |
1137 |
|
|
<xsl:variable name="src" select="'/dyn/glsa-index.xml'"/> |
1138 |
|
|
<table> |
1139 |
|
|
<xsl:for-each select="document($src)/guide/chapter[1]/section[1]/body/table[1]/tr[position()<11]"> |
1140 |
|
|
<tr><xsl:apply-templates/></tr> |
1141 |
|
|
</xsl:for-each> |
1142 |
|
|
</table> |
1143 |
|
|
</xsl:template> |
1144 |
|
|
|
1145 |
neysx |
1.141 |
|
1146 |
neysx |
1.165 |
<!-- Compare versions between two documents, scan handbooks if need be --> |
1147 |
|
|
<xsl:template name="compare-versions"> |
1148 |
|
|
<xsl:param name="original"/> |
1149 |
|
|
<xsl:param name="translation"/> |
1150 |
|
|
<xsl:choose> |
1151 |
|
|
<xsl:when test="$original/book and $translation/book"> |
1152 |
|
|
<!-- /book == /book --> |
1153 |
|
|
<xsl:choose> |
1154 |
|
|
<xsl:when test="$full != 0"> |
1155 |
|
|
<!-- if full != 0, then compare all files --> |
1156 |
|
|
<!-- Compare versions in master files --> |
1157 |
|
|
<xsl:if test="$original/book/version != $translation/book/version">X</xsl:if> |
1158 |
|
|
<!-- Compare versions in original chapters vs. translated chapters that have the same position --> |
1159 |
|
|
<xsl:for-each select="$original/book/part"> |
1160 |
|
|
<xsl:variable name="part" select="position()"/> |
1161 |
|
|
<xsl:for-each select="chapter"> |
1162 |
|
|
<xsl:variable name="chap" select="position()"/> |
1163 |
|
|
<xsl:variable name="ov" select="document($original/book/part[$part]/chapter[$chap]/include/@href)/sections/version"/> |
1164 |
|
|
<xsl:variable name="tv" select="document($translation/book/part[$part]/chapter[$chap]/include/@href)/sections/version"/> |
1165 |
neysx |
1.168 |
<xsl:if test="$ov != $tv or not($tv)">X</xsl:if> |
1166 |
neysx |
1.165 |
</xsl:for-each> |
1167 |
|
|
</xsl:for-each> |
1168 |
|
|
</xsl:when> |
1169 |
|
|
<xsl:when test="$part = '0' or $chap = '0'"> |
1170 |
|
|
<!-- Table of contents, check master file --> |
1171 |
|
|
<xsl:if test="$original/book/version != $translation/book/version">X</xsl:if> |
1172 |
|
|
</xsl:when> |
1173 |
|
|
<xsl:otherwise> |
1174 |
|
|
<!-- Compare chapters at same position (/$part/$chap/) in English handbook and in translated one --> |
1175 |
|
|
<xsl:variable name="ov" select="document($original/book/part[position()=$part]/chapter[position()=$chap]/include/@href)/sections/version"/> |
1176 |
|
|
<xsl:variable name="tv" select="document($translation/book/part[position()=$part]/chapter[position()=$chap]/include/@href)/sections/version"/> |
1177 |
neysx |
1.168 |
<xsl:if test="$ov != $tv or not($tv)">X</xsl:if> |
1178 |
neysx |
1.165 |
</xsl:otherwise> |
1179 |
|
|
</xsl:choose> |
1180 |
|
|
</xsl:when> |
1181 |
|
|
<xsl:when test="$original/guide and $translation/guide"> |
1182 |
|
|
<!-- /guide == /guide --> |
1183 |
|
|
<xsl:if test="$original/guide/version != $translation/guide/version">X</xsl:if> |
1184 |
|
|
</xsl:when> |
1185 |
|
|
<!-- If we did not compare book==book or guide==guide, then consider versions are different --> |
1186 |
|
|
<xsl:otherwise>X</xsl:otherwise> |
1187 |
|
|
</xsl:choose> |
1188 |
|
|
</xsl:template> |
1189 |
|
|
|
1190 |
|
|
<!-- Return the date of a document, for handbooks, it is the max(main file date, all included parts dates) --> |
1191 |
|
|
<xsl:template name="maxdate"> |
1192 |
|
|
<xsl:param name="thedoc"/> |
1193 |
neysx |
1.141 |
<xsl:choose> |
1194 |
neysx |
1.165 |
<xsl:when test="$thedoc/book"> |
1195 |
neysx |
1.141 |
<!-- In a book: look for max(/date, include_files/sections/date) --> |
1196 |
neysx |
1.165 |
<xsl:for-each select="$thedoc/book/part/chapter/include"> |
1197 |
neysx |
1.141 |
<xsl:sort select="document(@href)/sections/date" order="descending" /> |
1198 |
|
|
<xsl:if test="position() = 1"> |
1199 |
|
|
<!-- Compare the max(date) from included files with the date in the master file |
1200 |
|
|
Of course, XSLT 1.0 knows no string comparison operator :-( |
1201 |
|
|
So we build a node set with the two dates and we sort it. |
1202 |
|
|
--> |
1203 |
|
|
<xsl:variable name="theDates"> |
1204 |
|
|
<xsl:element name="bookDate"> |
1205 |
neysx |
1.165 |
<xsl:value-of select="$thedoc/book/date"/> |
1206 |
neysx |
1.141 |
</xsl:element> |
1207 |
|
|
<xsl:element name="maxChapterDate"> |
1208 |
|
|
<xsl:value-of select="document(@href)/sections/date"/> |
1209 |
|
|
</xsl:element> |
1210 |
|
|
</xsl:variable> |
1211 |
|
|
<xsl:variable name="sortedDates"> |
1212 |
|
|
<xsl:for-each select="exslt:node-set($theDates)/*"> |
1213 |
|
|
<xsl:sort select="." order="descending" /> |
1214 |
|
|
<xsl:copy-of select="."/> |
1215 |
|
|
</xsl:for-each> |
1216 |
|
|
</xsl:variable> |
1217 |
|
|
<!-- First date is the one we want --> |
1218 |
neysx |
1.165 |
<xsl:value-of select="exslt:node-set($sortedDates)/*[position()=1]"/> |
1219 |
neysx |
1.141 |
</xsl:if> |
1220 |
|
|
</xsl:for-each> |
1221 |
|
|
</xsl:when> |
1222 |
neysx |
1.165 |
<xsl:when test="$thedoc/guide or $thedoc/sections or $thedoc/mainpage"> |
1223 |
|
|
<xsl:value-of select="$thedoc/*[1]/date"/> |
1224 |
|
|
</xsl:when> |
1225 |
|
|
</xsl:choose> |
1226 |
|
|
</xsl:template> |
1227 |
|
|
|
1228 |
|
|
<xsl:template name="contentdate"> |
1229 |
|
|
<xsl:variable name="docdate"> |
1230 |
|
|
<xsl:call-template name="maxdate"> |
1231 |
|
|
<xsl:with-param name="thedoc" select="/"/> |
1232 |
|
|
</xsl:call-template> |
1233 |
|
|
</xsl:variable> |
1234 |
|
|
|
1235 |
|
|
<xsl:choose> |
1236 |
|
|
<xsl:when test="func:gettext('Updated')/docdate"> |
1237 |
|
|
<xsl:apply-templates select="func:gettext('Updated')"> |
1238 |
|
|
<xsl:with-param name="docdate" select="$docdate"/> |
1239 |
|
|
</xsl:apply-templates> |
1240 |
neysx |
1.147 |
</xsl:when> |
1241 |
neysx |
1.165 |
<xsl:otherwise> |
1242 |
|
|
<xsl:value-of select="concat(func:gettext('Updated'),' ')"/> <xsl:copy-of select="func:format-date($docdate)"/> |
1243 |
|
|
</xsl:otherwise> |
1244 |
neysx |
1.141 |
</xsl:choose> |
1245 |
|
|
</xsl:template> |
1246 |
|
|
|
1247 |
neysx |
1.165 |
<xsl:template name="outdated-translation"> |
1248 |
|
|
<!-- Add mention that translation is outdated whenever possible --> |
1249 |
|
|
<xsl:variable name="link"> |
1250 |
|
|
<xsl:value-of select="/*[1]/@link"/> |
1251 |
|
|
</xsl:variable> |
1252 |
|
|
<xsl:if test="starts-with($link, '/doc/') and not(starts-with($link, '/doc/en/')) and $glang != ''"> |
1253 |
|
|
<!-- We have a translation, is it up-to-date? --> |
1254 |
|
|
<xsl:variable name="metadoc" select="document(concat('/doc/', $glang, '/metadoc.xml'))"/> |
1255 |
|
|
<xsl:variable name="fileid" select="$metadoc/metadoc/files/file[text()=$link]/@id"/> |
1256 |
|
|
<xsl:choose> |
1257 |
|
|
<xsl:when test="not($fileid)"> |
1258 |
|
|
<!-- File is not even listed in local metadoc.xml --> |
1259 |
|
|
<xsl:value-of select="func:gettext('NoIndex')"/> |
1260 |
|
|
</xsl:when> |
1261 |
|
|
<xsl:otherwise> |
1262 |
|
|
<xsl:variable name="pmetadoc" select="document($metadoc/metadoc/@parent)"/> |
1263 |
|
|
<xsl:choose> |
1264 |
|
|
<xsl:when test="not($pmetadoc/metadoc/files/file[@id=$fileid])"> |
1265 |
|
|
<!-- File is not listed in original metadoc.xml --> |
1266 |
|
|
<xsl:value-of select="func:gettext('NoOriginal')"/> |
1267 |
|
|
</xsl:when> |
1268 |
|
|
<xsl:otherwise> |
1269 |
|
|
<!-- Document is listed in both local metadoc.xml and English one, compare version numbers --> |
1270 |
|
|
<xsl:variable name="pfile" select="$pmetadoc/metadoc/files/file[@id=$fileid]"/> |
1271 |
|
|
<xsl:variable name="versions"> |
1272 |
|
|
<xsl:call-template name="compare-versions"> |
1273 |
|
|
<xsl:with-param name="original" select ="document($pfile)"/> |
1274 |
|
|
<xsl:with-param name="translation" select ="/"/> |
1275 |
|
|
</xsl:call-template> |
1276 |
|
|
</xsl:variable> |
1277 |
|
|
<xsl:if test="string-length($versions) > 0"> |
1278 |
|
|
<xsl:variable name="pdocdate"> |
1279 |
|
|
<xsl:call-template name="maxdate"> |
1280 |
|
|
<xsl:with-param name="thedoc" select="document($pfile)"/> |
1281 |
|
|
</xsl:call-template> |
1282 |
|
|
</xsl:variable> |
1283 |
|
|
<xsl:variable name="res"> |
1284 |
|
|
<xsl:apply-templates select="func:gettext('Outdated')"> |
1285 |
|
|
<xsl:with-param name="docdate" select="$pdocdate"/> |
1286 |
|
|
<xsl:with-param name="paramlink" select="$pfile"/> |
1287 |
|
|
</xsl:apply-templates> |
1288 |
|
|
</xsl:variable> |
1289 |
|
|
<xsl:copy-of select="$res"/> |
1290 |
|
|
</xsl:if> |
1291 |
|
|
</xsl:otherwise> |
1292 |
|
|
</xsl:choose> |
1293 |
|
|
</xsl:otherwise> |
1294 |
|
|
</xsl:choose> |
1295 |
|
|
</xsl:if> |
1296 |
|
|
</xsl:template> |
1297 |
|
|
|
1298 |
|
|
<xsl:template match="docdate"> |
1299 |
|
|
<xsl:param name="docdate"/> |
1300 |
|
|
<xsl:copy-of select="func:format-date($docdate)"/> |
1301 |
|
|
</xsl:template> |
1302 |
|
|
|
1303 |
|
|
|
1304 |
neysx |
1.146 |
<xsl:template name="rhcol"> |
1305 |
|
|
<!-- Right-hand column with date/authors/ads --> |
1306 |
|
|
<table border="0" cellspacing="4px" cellpadding="4px"> |
1307 |
|
|
<!-- Add a "printer-friendly" button when link attribute exists --> |
1308 |
|
|
<xsl:if test="/book/@link or /guide/@link"> |
1309 |
|
|
<tr> |
1310 |
|
|
<td class="topsep" align="center"> |
1311 |
|
|
<p class="altmenu"> |
1312 |
neysx |
1.161 |
<xsl:variable name="PrintTip"><xsl:value-of select="func:gettext('PrintTip')"/></xsl:variable> |
1313 |
|
|
<xsl:variable name="href"> |
1314 |
|
|
<xsl:choose> |
1315 |
|
|
<xsl:when test="/book and $full != 0"> |
1316 |
|
|
<xsl:value-of select="concat(@link, '?full=1&style=printable')"/> |
1317 |
|
|
</xsl:when> |
1318 |
|
|
<xsl:when test="/book"> |
1319 |
|
|
<xsl:value-of select="concat(@link, '?style=printable')"/> |
1320 |
|
|
<xsl:if test="$part != '0'">&part=<xsl:value-of select="$part"/></xsl:if> |
1321 |
|
|
<xsl:if test="$chap != '0'">&chap=<xsl:value-of select="$chap"/></xsl:if> |
1322 |
|
|
</xsl:when> |
1323 |
|
|
<xsl:when test="/guide"> |
1324 |
|
|
<xsl:value-of select="concat(@link, '?style=printable')"/> |
1325 |
|
|
</xsl:when> |
1326 |
|
|
</xsl:choose> |
1327 |
|
|
</xsl:variable> |
1328 |
|
|
<a title="{$PrintTip}" class="altlink" href="{$href}"><xsl:value-of select="func:gettext('Print')"/></a> |
1329 |
neysx |
1.146 |
</p> |
1330 |
|
|
</td> |
1331 |
|
|
</tr> |
1332 |
|
|
</xsl:if> |
1333 |
|
|
<xsl:choose> |
1334 |
neysx |
1.147 |
<xsl:when test="/book/date or /guide/date or /sections/date"> |
1335 |
neysx |
1.146 |
<tr> |
1336 |
|
|
<td align="center" class="topsep"> |
1337 |
|
|
<p class="alttext"> |
1338 |
|
|
<xsl:call-template name="contentdate"/> |
1339 |
|
|
</p> |
1340 |
|
|
</td> |
1341 |
|
|
</tr> |
1342 |
neysx |
1.165 |
<xsl:variable name="outdated"> |
1343 |
|
|
<xsl:call-template name="outdated-translation"/> |
1344 |
|
|
</xsl:variable> |
1345 |
|
|
<xsl:if test="string-length($outdated) > 1"> |
1346 |
|
|
<tr> |
1347 |
|
|
<td align="left" class="topsep"> |
1348 |
|
|
<p class="alttext"> |
1349 |
|
|
<xsl:copy-of select="$outdated"/> |
1350 |
|
|
</p> |
1351 |
|
|
</td> |
1352 |
|
|
</tr> |
1353 |
|
|
</xsl:if> |
1354 |
neysx |
1.146 |
</xsl:when> |
1355 |
|
|
<xsl:when test="/mainpage/date"> |
1356 |
|
|
<tr> |
1357 |
|
|
<td align="center" class="topsep"> |
1358 |
|
|
<p class="alttext"> |
1359 |
|
|
<xsl:value-of select="concat(func:gettext('Updated'),' ')"/> |
1360 |
neysx |
1.164 |
<xsl:copy-of select="func:format-date(/mainpage/date)"/> |
1361 |
neysx |
1.146 |
</p> |
1362 |
|
|
</td> |
1363 |
|
|
</tr> |
1364 |
|
|
</xsl:when> |
1365 |
|
|
<xsl:when test="/news/date"> |
1366 |
|
|
<tr> |
1367 |
|
|
<td align="center" class="topsep"> |
1368 |
|
|
<p class="alttext"> |
1369 |
|
|
<xsl:value-of select="concat(func:gettext('Updated'),' ')"/> |
1370 |
neysx |
1.164 |
<xsl:copy-of select="func:format-date(/news/date)"/> |
1371 |
neysx |
1.146 |
</p> |
1372 |
|
|
</td> |
1373 |
|
|
</tr> |
1374 |
|
|
</xsl:when> |
1375 |
|
|
</xsl:choose> |
1376 |
|
|
<xsl:if test="/book/abstract[normalize-space(.)] or /guide/abstract[normalize-space(.)]"> |
1377 |
|
|
<tr> |
1378 |
neysx |
1.166 |
<td align="left" class="topsep"> |
1379 |
neysx |
1.146 |
<p class="alttext"> |
1380 |
|
|
<!-- Abstract (summary) of the document --> |
1381 |
|
|
<b><xsl:value-of select="func:gettext('Summary')"/>: </b> |
1382 |
|
|
<xsl:apply-templates select="abstract"/> |
1383 |
|
|
</p> |
1384 |
|
|
</td> |
1385 |
|
|
</tr> |
1386 |
|
|
</xsl:if> |
1387 |
|
|
<xsl:if test="/book/author or /guide/author"> |
1388 |
|
|
<tr> |
1389 |
neysx |
1.166 |
<td align="left" class="topsep"> |
1390 |
neysx |
1.146 |
<p class="alttext"> |
1391 |
|
|
<!-- Authors --> |
1392 |
|
|
<xsl:apply-templates select="/guide/author|/book/author"/> |
1393 |
|
|
</p> |
1394 |
|
|
</td> |
1395 |
|
|
</tr> |
1396 |
|
|
</xsl:if> |
1397 |
|
|
|
1398 |
neysx |
1.149 |
<tr lang="en"> |
1399 |
neysx |
1.146 |
<td align="center" class="topsep"> |
1400 |
|
|
<p class="alttext"> |
1401 |
|
|
<b>Donate</b> to support our development efforts. |
1402 |
|
|
</p> |
1403 |
|
|
|
1404 |
|
|
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> |
1405 |
|
|
<input type="hidden" name="cmd" value="_xclick"/> |
1406 |
|
|
<input type="hidden" name="business" value="paypal@gentoo.org"/> |
1407 |
|
|
<input type="hidden" name="item_name" value="Gentoo Linux Support"/> |
1408 |
|
|
<input type="hidden" name="item_number" value="1000"/> |
1409 |
|
|
<input type="hidden" name="image_url" value="/images/paypal.png"/> |
1410 |
|
|
<input type="hidden" name="no_shipping" value="1"/> |
1411 |
|
|
<input type="hidden" name="return" value="http://www.gentoo.org"/> |
1412 |
|
|
<input type="hidden" name="cancel_return" value="http://www.gentoo.org"/> |
1413 |
|
|
|
1414 |
neysx |
1.174 |
<input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Donate to Gentoo"/> |
1415 |
neysx |
1.146 |
</form> |
1416 |
|
|
</td> |
1417 |
|
|
</tr> |
1418 |
neysx |
1.149 |
<tr lang="en"> |
1419 |
|
|
<td align="center" class="topsep"> |
1420 |
|
|
<a href="http://www.vr.org"> |
1421 |
swift |
1.148 |
<img src="/images/vr-ad.png" width="125" height="144" alt="Gentoo Centric Hosting: vr.org" border="0"/> |
1422 |
neysx |
1.146 |
</a> |
1423 |
neysx |
1.149 |
<p class="alttext"> |
1424 |
|
|
<a href="http://www.vr.org/">VR Hosted</a> |
1425 |
|
|
</p> |
1426 |
|
|
</td> |
1427 |
neysx |
1.146 |
</tr> |
1428 |
neysx |
1.149 |
<tr lang="en"> |
1429 |
|
|
<td align="center" class="topsep"> |
1430 |
swift |
1.148 |
<a href="http://www.tek.net" target="_top"> |
1431 |
|
|
<img src="/images/tek-gentoo.gif" width="125" height="125" alt="Tek Alchemy" border="0"/> |
1432 |
neysx |
1.146 |
</a> |
1433 |
swift |
1.148 |
<p class="alttext"> |
1434 |
|
|
<a href="http://www.tek.net/">Tek Alchemy</a> |
1435 |
|
|
</p> |
1436 |
neysx |
1.149 |
</td> |
1437 |
neysx |
1.146 |
</tr> |
1438 |
neysx |
1.149 |
<tr lang="en"> |
1439 |
neysx |
1.146 |
<td align="center" class="topsep"> |
1440 |
|
|
<a href="http://www.sevenl.net" target="_top"> |
1441 |
|
|
<img src="/images/sponsors/sevenl.gif" width="125" height="144" alt="SevenL.net" border="0"/> |
1442 |
|
|
</a> |
1443 |
|
|
<p class="alttext"> |
1444 |
swift |
1.148 |
<a href="http://www.sevenl.net/">SevenL.net</a> |
1445 |
neysx |
1.146 |
</p> |
1446 |
|
|
</td> |
1447 |
|
|
</tr> |
1448 |
neysx |
1.149 |
<tr lang="en"> |
1449 |
|
|
<td align="center" class="topsep"> |
1450 |
swift |
1.148 |
<a href="http://www.phparch.com/bannerclick.php?AID=68&BID=1&BT=127929" target="_top"> |
1451 |
|
|
<img src="/images/phpa-gentoo.gif" width="125" height="144" alt="php|architect" border="0"/> |
1452 |
|
|
</a> |
1453 |
|
|
<p class="alttext"> |
1454 |
|
|
<a href="http://www.phparch.com/bannerclick.php?AID=68&BID=1&BT=127929">php|architect</a> |
1455 |
|
|
</p> |
1456 |
neysx |
1.149 |
</td> |
1457 |
|
|
</tr> |
1458 |
neysx |
1.146 |
<tr> |
1459 |
|
|
<td align="center" class="topsep"/> |
1460 |
|
|
</tr> |
1461 |
|
|
</table> |
1462 |
|
|
</xsl:template> |
1463 |
|
|
|
1464 |
neysx |
1.154 |
<xsl:template name="newscontent"> |
1465 |
|
|
<xsl:param name="thenews"/> |
1466 |
|
|
<xsl:param name="summary"/> |
1467 |
|
|
<xsl:param name="link"/> |
1468 |
|
|
|
1469 |
|
|
<div class="news"> |
1470 |
|
|
<p class="newshead" lang="en"> |
1471 |
|
|
<b><xsl:value-of select="$thenews/title"/></b> |
1472 |
|
|
<br/> |
1473 |
|
|
<font size="0.90em"> |
1474 |
neysx |
1.164 |
Posted on <xsl:copy-of select="func:format-date($thenews/date)"/> |
1475 |
neysx |
1.154 |
by <xsl:value-of select="$thenews/poster"/> |
1476 |
|
|
</font> |
1477 |
|
|
</p> |
1478 |
|
|
|
1479 |
|
|
<xsl:choose> |
1480 |
|
|
<xsl:when test="$thenews/@category='alpha'"> |
1481 |
|
|
<img class="newsicon" src="/images/icon-alpha.gif" alt="AlphaServer GS160"/> |
1482 |
|
|
</xsl:when> |
1483 |
|
|
<xsl:when test="$thenews/@category='kde'"> |
1484 |
|
|
<img class="newsicon" src="/images/icon-kde.png" alt="KDE"/> |
1485 |
|
|
</xsl:when> |
1486 |
|
|
<xsl:when test="$thenews/@category='gentoo'"> |
1487 |
|
|
<img class="newsicon" src="/images/icon-gentoo.png" alt="gentoo"/> |
1488 |
|
|
</xsl:when> |
1489 |
|
|
<xsl:when test="$thenews/@category='main'"> |
1490 |
|
|
<img class="newsicon" src="/images/icon-stick.png" alt="stick man"/> |
1491 |
|
|
</xsl:when> |
1492 |
|
|
<xsl:when test="$thenews/@category='ibm'"> |
1493 |
|
|
<img class="newsicon" src="/images/icon-ibm.gif" alt="ibm"/> |
1494 |
|
|
</xsl:when> |
1495 |
|
|
<xsl:when test="$thenews/@category='linux'"> |
1496 |
|
|
<img class="newsicon" src="/images/icon-penguin.png" alt="tux"/> |
1497 |
|
|
</xsl:when> |
1498 |
|
|
<xsl:when test="$thenews/@category='moo'"> |
1499 |
|
|
<img class="newsicon" src="/images/icon-cow.png" alt="Larry the Cow"/> |
1500 |
|
|
</xsl:when> |
1501 |
|
|
<xsl:when test="$thenews/@category='plans'"> |
1502 |
|
|
<img class="newsicon" src="/images/icon-clock.png" alt="Clock"/> |
1503 |
|
|
</xsl:when> |
1504 |
|
|
<xsl:when test="$thenews/@category='nvidia'"> |
1505 |
|
|
<img class="newsicon" src="/images/icon-nvidia.png" alt="Nvidia"/> |
1506 |
|
|
</xsl:when> |
1507 |
|
|
<xsl:when test="$thenews/@category='freescale'"> |
1508 |
|
|
<img class="newsicon" src="/images/icon-freescale.gif" alt="Freescale Semiconductor"/> |
1509 |
|
|
</xsl:when> |
1510 |
|
|
</xsl:choose> |
1511 |
|
|
|
1512 |
|
|
<div class="newsitem"> |
1513 |
|
|
<xsl:choose> |
1514 |
|
|
<xsl:when test="$thenews/summary and $summary='yes'"> |
1515 |
|
|
<xsl:apply-templates select="$thenews/summary"/> |
1516 |
|
|
<br/> |
1517 |
|
|
<a href="{$link}"><b>(full story)</b></a> |
1518 |
|
|
</xsl:when> |
1519 |
|
|
<xsl:when test="$thenews/body"> |
1520 |
|
|
<xsl:apply-templates select="$thenews/body"/> |
1521 |
|
|
</xsl:when> |
1522 |
|
|
</xsl:choose> |
1523 |
|
|
</div> |
1524 |
|
|
</div> |
1525 |
|
|
</xsl:template> |
1526 |
|
|
|
1527 |
|
|
|
1528 |
drobbins |
1.1 |
</xsl:stylesheet> |