source: BOOK/stylesheets/top-index.xsl @ 8be7095

Last change on this file since 8be7095 was 8be7095, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Update the top index, the makefile, and the version entities.

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2<!DOCTYPE xsl:stylesheet [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4  %general-entities;
5]>
6
7<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8                xmlns="http://www.w3.org/1999/xhtml"
9                version="1.0">
10
11  <xsl:output method="html" encoding="iso-8859-1"/>
12
13  <xsl:template match="/">
14    <html>
15      <head>
16        <title>
17          Cross-Compiled Linux From Scratch
18        </title>
19        <style type="text/css">
20          <xsl:text>
21/* Global settings */
22body {
23  font-family: verdana, tahoma, helvetica, arial, sans-serif;
24  text-align: left;
25  background: #fff;
26  color: #222;
27  margin: 1em;
28  padding: 0;
29  font-size: 1em;
30  line-height: 1.2em
31}
32
33a:link { color: #22b; }
34a.ulink:link { font-weight: bold; color: #55f; }
35a:visited { color: #7e4988 ! important; }
36a:hover, a:focus { color: #d30e08 ! important; }
37a:active { color: #6b77b1 ! important;}
38
39h1, h2 h3, h4 {
40  color: #000;
41  font-weight: bold;
42  line-height: 1em;
43}
44
45h1 { font-size: 173%; text-align: center; }
46h2 { font-size: 144%; text-align: center; }
47h3 { font-size: 120%; }
48h4 { font-size: 110%; }
49
50.toc {
51  padding-left: 1em;
52}
53
54.toc ul li h3, .toc ul li h4 {
55  margin: .4em;
56}
57
58.book h1 {
59  background: #f5f6f7;
60  margin: 0px auto;
61  padding: 0.5em;
62}
63
64.book h2 {
65  background: #dbddec;
66  margin: 0px auto;
67  padding: 0.2em;
68}
69.author, .copyright {
70  background: #f5f6f7;
71  margin: 0px auto;
72  padding: 0.5em 1em;
73}
74
75hr {
76  background: #dbddec;
77  height: .3em;
78  border: 0px;
79  margin: 0px auto;
80  padding: 0;
81}
82          </xsl:text>
83        </style>
84      </head>
85      <body>
86        <xsl:apply-templates/>
87      </body>
88    </html>
89  </xsl:template>
90
91  <xsl:template match="bookinfo">
92    <div class="book">
93      <div class="titlepage">
94        <xsl:apply-templates/>
95        <hr/>
96      </div>
97      <div class="toc">
98        <h3>
99          <xsl:text>32 Bit Builds</xsl:text>
100        </h3>
101        <ul>
102          <h3>
103            <xsl:text>Working. Testers and comments welcomed.</xsl:text>
104          </h3>
105          <li>
106            <h4>
107              <a href="x86">
108                <xsl:text>Intel/AMD x86</xsl:text>
109              </a>
110            </h4>
111          </li>
112          <li>
113            <h4>
114              <a href="ppc">
115                <xsl:text>PowerPC</xsl:text>
116              </a>
117            </h4>
118          </li>
119<!--
120          <li>
121            <h4>
122              <a href="mips">
123                <xsl:text>MIPS</xsl:text>
124              </a>
125            </h4>
126          </li>
127          <li>
128            <h4>
129              <a href="sparc">
130                <xsl:text>Sparc v8</xsl:text>
131              </a>
132            </h4>
133          </li>
134-->
135        </ul>
136        <h3>
137          <xsl:text>64 Bit Builds</xsl:text>
138        </h3>
139        <ul>
140          <h3>
141            <xsl:text>Working. Testers and comments welcomed.</xsl:text>
142          </h3>
143          <li>
144            <h4>
145              <a href="x86_64-64">
146                <xsl:text>x86_64</xsl:text>
147              </a>
148            </h4>
149          </li>
150<!--
151          <li>
152            <h4>
153              <a href="mips64-64">
154                <xsl:text>MIPS</xsl:text>
155              </a>
156            </h4>
157          </li>
158-->
159          <li>
160            <h4>
161             <a href="sparc64-64">
162                <xsl:text>Sparc v9/Ultrasparc</xsl:text>
163             </a>
164            </h4>
165          </li>
166<!--
167          <li>
168            <h4>
169             <a href="alpha">
170                <xsl:text>Alpha</xsl:text>
171             </a>
172            </h4>
173          </li>
174-->
175        </ul>
176        <h3>
177          <xsl:text>Multilib Builds</xsl:text>
178        </h3>
179        <ul>
180          <h3>
181             <xsl:text>Working. Testers and comments welcomed.</xsl:text>
182          </h3>
183          <li>
184            <h4>
185              <a href="x86_64">
186                <xsl:text>x86_64</xsl:text>
187              </a>
188            </h4>
189          </li>
190<!--
191          <li>
192            <h4>
193              <a href="mips64">
194                <xsl:text>MIPS</xsl:text>
195              </a>
196            </h4>
197          </li>
198-->
199          <li>
200            <h4>
201             <a href="sparc64">
202                <xsl:text>Sparc v9/Ultrasparc</xsl:text>
203             </a>
204            </h4>
205          </li>
206          <li>
207            <h4>
208              <a href="ppc64">
209                <xsl:text>PowerPC64</xsl:text>
210              </a>
211            </h4>
212          </li>
213        </ul>
214      </div>
215    </div>
216  </xsl:template>
217
218  <xsl:template match="title">
219    <h1 class="title">
220      <xsl:value-of select="."/>
221    </h1>
222    <h2 class="subtitle">
223      <xsl:text>Version &version;</xsl:text>
224    </h2>
225  </xsl:template>
226
227  <xsl:template match="authorgroup">
228    <h3 class="author">
229      <xsl:value-of select="author[1]/firstname"/>
230      <xsl:text> </xsl:text>
231      <xsl:value-of select="author[1]/surname"/>
232    </h3>
233    <h3 class="author">
234      <xsl:value-of select="author[2]/firstname"/>
235      <xsl:text> </xsl:text>
236      <xsl:value-of select="author[2]/surname"/>
237    </h3>
238  </xsl:template>
239
240  <xsl:template match="copyright">
241    <p class="copyright">
242      <xsl:text>Copyright ©</xsl:text>
243      <xsl:apply-templates/>
244    </p>
245  </xsl:template>
246
247  <xsl:template match="year">
248    <xsl:value-of select="."/>
249  </xsl:template>
250
251  <xsl:template match="holder">
252    <xsl:value-of select="."/>
253  </xsl:template>
254
255  <xsl:template match="bibliosource">
256    <p class="copyright">
257      <em>
258        <xsl:apply-templates/>
259      </em>
260    </p>
261  </xsl:template>
262
263  <xsl:template match="subtitle|author|firstname|surname|legalnotice"/>
264
265</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.