source: BOOK/stylesheets/top-index.xsl@ 480230bc

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 480230bc was 375cc4c, checked in by Chris Staub <chris@…>, 10 years ago

Rewrote top-index page

  • Property mode set to 100644
File size: 4.9 KB
RevLine 
[3f8be484]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>
[abdbe76]17 Cross-Compiled Linux From Scratch
[3f8be484]18 </title>
19 <style type="text/css">
20 <xsl:text>
[de64fc88]21/* Global settings */
[3f8be484]22body {
[de64fc88]23 font-family: verdana, tahoma, helvetica, arial, sans-serif;
[3f8be484]24 text-align: left;
25 background: #fff;
[de64fc88]26 color: #222;
[3f8be484]27 margin: 1em;
28 padding: 0;
29 font-size: 1em;
30 line-height: 1.2em
31}
32
33a:link { color: #22b; }
[de64fc88]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;}
[3f8be484]38
[de64fc88]39h1, h2 h3, h4 {
[3f8be484]40 color: #000;
41 font-weight: bold;
[de64fc88]42 line-height: 1em;
[3f8be484]43}
44
45h1 { font-size: 173%; text-align: center; }
[de64fc88]46h2 { font-size: 144%; text-align: center; }
47h3 { font-size: 120%; }
48h4 { font-size: 110%; }
[3f8be484]49
[de64fc88]50.toc {
[3f8be484]51 padding-left: 1em;
52}
53
[de64fc88]54.toc ul li h3, .toc ul li h4 {
[3f8be484]55 margin: .4em;
56}
57
[de64fc88]58.book h1 {
[3f8be484]59 background: #f5f6f7;
60 margin: 0px auto;
61 padding: 0.5em;
62}
63
[de64fc88]64.book h2 {
[3f8be484]65 background: #dbddec;
66 margin: 0px auto;
67 padding: 0.2em;
68}
[de64fc88]69.author, .copyright {
[3f8be484]70 background: #f5f6f7;
71 margin: 0px auto;
[de64fc88]72 padding: 0.5em 1em;
[3f8be484]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>
[375cc4c]99 <xsl:text>Select your target architecture:</xsl:text>
100 </h3>
101 <h3>
102 <xsl:text>Intel/AMD x86</xsl:text>
[3f8be484]103 </h3>
104 <ul>
105 <li>
106 <h4>
107 <a href="x86">
[375cc4c]108 <xsl:text>32 Bits</xsl:text>
[3f8be484]109 </a>
110 </h4>
111 </li>
112 <li>
113 <h4>
[375cc4c]114 <a href="x86_64-64">
115 <xsl:text>64 Bits</xsl:text>
[3f8be484]116 </a>
117 </h4>
118 </li>
119 <li>
120 <h4>
[375cc4c]121 <a href="x86_64">
122 <xsl:text>Multilib</xsl:text>
[3f8be484]123 </a>
124 </h4>
125 </li>
126 </ul>
127 <h3>
[375cc4c]128 <xsl:text>MIPS</xsl:text>
[3f8be484]129 </h3>
130 <ul>
131 <li>
132 <h4>
[375cc4c]133 <a href="mips">
134 <xsl:text>32 Bits</xsl:text>
[3f8be484]135 </a>
136 </h4>
137 </li>
[cea2986]138 <li>
139 <h4>
[1de8183]140 <a href="mips64-64">
[375cc4c]141 <xsl:text>64 Bits</xsl:text>
[cea2986]142 </a>
143 </h4>
144 </li>
[3f8be484]145 <li>
146 <h4>
[375cc4c]147 <a href="mips64">
148 <xsl:text>Multilib</xsl:text>
[3f8be484]149 </a>
150 </h4>
151 </li>
152 </ul>
153 <h3>
[375cc4c]154 <xsl:text>PowerPC</xsl:text>
[3f8be484]155 </h3>
156 <ul>
157 <li>
158 <h4>
[375cc4c]159 <a href="ppc">
160 <xsl:text>32 Bits</xsl:text>
[3f8be484]161 </a>
162 </h4>
163 </li>
164 <li>
165 <h4>
[375cc4c]166 <a href="ppc64-64">
167 <xsl:text>64 Bits</xsl:text>
[3f8be484]168 </a>
169 </h4>
170 </li>
171 <li>
172 <h4>
[1de8183]173 <a href="ppc64">
[375cc4c]174 <xsl:text>Multilib</xsl:text>
[1de8183]175 </a>
[3f8be484]176 </h4>
177 </li>
[375cc4c]178 </ul>
179 <h3>
180 <xsl:text>Sparc</xsl:text>
181 </h3>
182 <ul>
[d49b9e8]183 <li>
184 <h4>
[375cc4c]185 <a href="sparc">
186 <xsl:text>32 Bits</xsl:text>
187 </a>
[d49b9e8]188 </h4>
189 </li>
[375cc4c]190 <li>
191 <h4>
192 <a href="sparc64-64">
193 <xsl:text>64 Bits</xsl:text>
194 </a>
195 </h4>
196 </li>
197 <li>
198 <h4>
199 <a href="sparc64">
200 <xsl:text>Multilib</xsl:text>
201 </a>
202 </h4>
203 </li>
204 </ul>
[3f8be484]205 </div>
206 </div>
207 </xsl:template>
208
209 <xsl:template match="title">
[de64fc88]210 <h1 class="title">
211 <xsl:value-of select="."/>
212 </h1>
213 <h2 class="subtitle">
214 <xsl:text>Version &version;</xsl:text>
215 </h2>
[3f8be484]216 </xsl:template>
217
218 <xsl:template match="copyright">
[de64fc88]219 <p class="copyright">
220 <xsl:text>Copyright ©</xsl:text>
221 <xsl:apply-templates/>
222 </p>
[3f8be484]223 </xsl:template>
224
225 <xsl:template match="year">
226 <xsl:value-of select="."/>
227 </xsl:template>
228
229 <xsl:template match="holder">
230 <xsl:value-of select="."/>
231 </xsl:template>
232
[e629d35]233 <xsl:template match="bibliosource">
[de64fc88]234 <p class="copyright">
235 <em>
236 <xsl:apply-templates/>
237 </em>
238 </p>
[e629d35]239 </xsl:template>
240
[3f8be484]241 <xsl:template match="subtitle|author|firstname|surname|legalnotice"/>
242
243</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.