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 | Linux From Scratch |
---|
18 | </title> |
---|
19 | <style type="text/css"> |
---|
20 | <xsl:text> |
---|
21 | body { |
---|
22 | font-family: sans-serif; |
---|
23 | text-align: left; |
---|
24 | background: #fff; |
---|
25 | color: #333; |
---|
26 | margin: 1em; |
---|
27 | padding: 0; |
---|
28 | font-size: 1em; |
---|
29 | line-height: 1.2em |
---|
30 | } |
---|
31 | |
---|
32 | a:link { color: #22b; } |
---|
33 | a:visited { color: #7e4988; } |
---|
34 | a:hover, a:focus { color: #d30e08; } |
---|
35 | a:active { color: #6b77b1;} |
---|
36 | |
---|
37 | h1, h2 { |
---|
38 | color: #000; |
---|
39 | font-weight: bold; |
---|
40 | } |
---|
41 | |
---|
42 | h3, h4, h5, h6 { |
---|
43 | color: #222; |
---|
44 | } |
---|
45 | |
---|
46 | h1 { font-size: 173%; text-align: center; } |
---|
47 | h2 { font-size: 144%; text-align: center; } |
---|
48 | h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; } |
---|
49 | h4 { font-size: 110%;} |
---|
50 | |
---|
51 | div.toc { |
---|
52 | padding-left: 1em; |
---|
53 | margin-top: 1em; |
---|
54 | } |
---|
55 | |
---|
56 | div.toc ul li h3, div.toc ul li h4 { |
---|
57 | margin: .4em; |
---|
58 | } |
---|
59 | |
---|
60 | div.book { |
---|
61 | padding-bottom: 0.5em; |
---|
62 | } |
---|
63 | |
---|
64 | div.book h1 { |
---|
65 | background: #f5f6f7; |
---|
66 | margin: 0px auto; |
---|
67 | padding: 0.5em; |
---|
68 | } |
---|
69 | |
---|
70 | div.book h2 { |
---|
71 | background: #dbddec; |
---|
72 | margin: 0px auto; |
---|
73 | padding: 0.2em; |
---|
74 | } |
---|
75 | div.authorgroup, div p.copyright { |
---|
76 | background: #f5f6f7; |
---|
77 | margin: 0px auto; |
---|
78 | padding: 1em 0.5em; |
---|
79 | } |
---|
80 | |
---|
81 | hr { |
---|
82 | background: #dbddec; |
---|
83 | height: .3em; |
---|
84 | border: 0px; |
---|
85 | margin: 0px auto; |
---|
86 | padding: 0; |
---|
87 | } |
---|
88 | </xsl:text> |
---|
89 | </style> |
---|
90 | </head> |
---|
91 | <body> |
---|
92 | <xsl:apply-templates/> |
---|
93 | </body> |
---|
94 | </html> |
---|
95 | </xsl:template> |
---|
96 | |
---|
97 | <xsl:template match="bookinfo"> |
---|
98 | <div class="book"> |
---|
99 | <div class="titlepage"> |
---|
100 | <xsl:apply-templates/> |
---|
101 | <hr/> |
---|
102 | </div> |
---|
103 | <div class="toc"> |
---|
104 | <h3> |
---|
105 | <xsl:text>32 Bit Builds</xsl:text> |
---|
106 | </h3> |
---|
107 | <ul> |
---|
108 | <h3> |
---|
109 | <xsl:text>Working. Testers and comments welcomed.</xsl:text> |
---|
110 | </h3> |
---|
111 | <li> |
---|
112 | <h4> |
---|
113 | <a href="x86"> |
---|
114 | <xsl:text>Intel/AMD x86</xsl:text> |
---|
115 | </a> |
---|
116 | </h4> |
---|
117 | </li> |
---|
118 | <li> |
---|
119 | <h4> |
---|
120 | <a href="ppc"> |
---|
121 | <xsl:text>PowerPC</xsl:text> |
---|
122 | </a> |
---|
123 | </h4> |
---|
124 | </li> |
---|
125 | <li> |
---|
126 | <h4> |
---|
127 | <a href="mips"> |
---|
128 | <xsl:text>MIPS</xsl:text> |
---|
129 | </a> |
---|
130 | </h4> |
---|
131 | </li> |
---|
132 | <li> |
---|
133 | <h4> |
---|
134 | <a href="sparc"> |
---|
135 | <xsl:text>Sparc v9 and above</xsl:text> |
---|
136 | </a> |
---|
137 | </h4> |
---|
138 | </li> |
---|
139 | </ul> |
---|
140 | <h3> |
---|
141 | <xsl:text>64 Bit Builds</xsl:text> |
---|
142 | </h3> |
---|
143 | <ul> |
---|
144 | <h3> |
---|
145 | <xsl:text>This is experimental. Bootloaders do not work.</xsl:text> |
---|
146 | </h3> |
---|
147 | <li> |
---|
148 | <h4> |
---|
149 | <a href="x86_64-64"> |
---|
150 | <xsl:text>x86_64</xsl:text> |
---|
151 | </a> |
---|
152 | </h4> |
---|
153 | </li> |
---|
154 | <li> |
---|
155 | <h4> |
---|
156 | <a href="mips64-64"> |
---|
157 | <xsl:text>MIPS</xsl:text> |
---|
158 | </a> |
---|
159 | </h4> |
---|
160 | </li> |
---|
161 | <li> |
---|
162 | <h4> |
---|
163 | <a href="sparc64-64"> |
---|
164 | <xsl:text>Sparc/UltraSPARC</xsl:text> |
---|
165 | </a> |
---|
166 | </h4> |
---|
167 | </li> |
---|
168 | <li> |
---|
169 | <h4> |
---|
170 | <a href="alpha"> |
---|
171 | <xsl:text>Alpha</xsl:text> |
---|
172 | </a> |
---|
173 | </h4> |
---|
174 | </li> |
---|
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 | <li> |
---|
191 | <h4> |
---|
192 | <a href="mips64"> |
---|
193 | <xsl:text>MIPS</xsl:text> |
---|
194 | </a> |
---|
195 | </h4> |
---|
196 | </li> |
---|
197 | <li> |
---|
198 | <h4> |
---|
199 | <a href="sparc64"> |
---|
200 | <xsl:text>Sparc/UltraSPARC</xsl:text> |
---|
201 | </a> |
---|
202 | </h4> |
---|
203 | </li> |
---|
204 | </ul> |
---|
205 | </div> |
---|
206 | </div> |
---|
207 | </xsl:template> |
---|
208 | |
---|
209 | <xsl:template match="title"> |
---|
210 | <div> |
---|
211 | <h1 class="title"> |
---|
212 | <xsl:value-of select="."/> |
---|
213 | </h1> |
---|
214 | </div> |
---|
215 | <div> |
---|
216 | <h2 class="subtitle"> |
---|
217 | <xsl:text>Version &version;</xsl:text> |
---|
218 | </h2> |
---|
219 | </div> |
---|
220 | </xsl:template> |
---|
221 | |
---|
222 | <xsl:template match="authorgroup"> |
---|
223 | <div class="authorgroup"> |
---|
224 | <h3 class="author"> |
---|
225 | <xsl:value-of select="author/firstname"/> |
---|
226 | <xsl:text> </xsl:text> |
---|
227 | <xsl:value-of select="author/surname"/> |
---|
228 | </h3> |
---|
229 | </div> |
---|
230 | </xsl:template> |
---|
231 | |
---|
232 | <xsl:template match="copyright"> |
---|
233 | <div> |
---|
234 | <p class="copyright"> |
---|
235 | <xsl:text>Copyright (c)</xsl:text> |
---|
236 | <xsl:apply-templates/> |
---|
237 | </p> |
---|
238 | </div> |
---|
239 | </xsl:template> |
---|
240 | |
---|
241 | <xsl:template match="year"> |
---|
242 | <xsl:value-of select="."/> |
---|
243 | </xsl:template> |
---|
244 | |
---|
245 | <xsl:template match="holder"> |
---|
246 | <xsl:value-of select="."/> |
---|
247 | </xsl:template> |
---|
248 | |
---|
249 | <xsl:template match="subtitle|author|firstname|surname|legalnotice"/> |
---|
250 | |
---|
251 | </xsl:stylesheet> |
---|