source: clfs-sysroot/BOOK/stylesheets/top-index.xsl@ 9401f22

Last change on this file since 9401f22 was c78de1a, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Added Alpha to the book.

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[02095ae]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>
[3afa7f7]17 Cross-Compiled Linux From Scratch - Sysroot
[02095ae]18 </title>
19 <style type="text/css">
20 <xsl:text>
21body {
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
32a:link { color: #22b; }
33a:visited { color: #7e4988; }
34a:hover, a:focus { color: #d30e08; }
35a:active { color: #6b77b1;}
36
37h1, h2 {
38 color: #000;
39 font-weight: bold;
40}
41
42h3, h4, h5, h6 {
43 color: #222;
44}
45
46h1 { font-size: 173%; text-align: center; }
47h2 { font-size: 144%; text-align: center; }
48h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
49h4 { font-size: 110%;}
50
51div.toc {
52 padding-left: 1em;
53 margin-top: 1em;
54}
55
56div.toc ul li h3, div.toc ul li h4 {
57 margin: .4em;
58}
59
60div.book {
61 padding-bottom: 0.5em;
62}
63
64div.book h1 {
65 background: #f5f6f7;
66 margin: 0px auto;
67 padding: 0.5em;
68}
69
70div.book h2 {
71 background: #dbddec;
72 margin: 0px auto;
73 padding: 0.2em;
74}
75div.authorgroup, div p.copyright {
76 background: #f5f6f7;
77 margin: 0px auto;
78 padding: 1em 0.5em;
79}
80
81hr {
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>
[da9613e]105 <xsl:text>32 Bit Builds (Under Development)</xsl:text>
[02095ae]106 </h3>
107 <ul>
108 <li>
109 <h4>
110 <a href="arm">
111 <xsl:text>ARM</xsl:text>
112 </a>
113 </h4>
114 </li>
[da9613e]115 <li>
116 <h4>
117 <a href="x86">
118 <xsl:text>X86</xsl:text>
119 </a>
120 </h4>
121 </li>
[12e7efe2]122 <li>
123 <h4>
124 <a href="hppa">
125 <xsl:text>PA-RISC</xsl:text>
126 </a>
127 </h4>
128 </li>
[02095ae]129 </ul>
[c78de1a]130 <h3>
131 <xsl:text>64 Bit Builds (Under Development)</xsl:text>
132 </h3>
133 <ul>
134 <li>
135 <h4>
136 <a href="alpha">
137 <xsl:text>Alpha</xsl:text>
138 </a>
139 </h4>
140 </li>
141 </ul>
[02095ae]142 </div>
143 </div>
144 </xsl:template>
145
146 <xsl:template match="title">
147 <div>
148 <h1 class="title">
149 <xsl:value-of select="."/>
150 </h1>
151 </div>
152 <div>
153 <h2 class="subtitle">
154 <xsl:text>Version &version;</xsl:text>
155 </h2>
156 </div>
157 </xsl:template>
158
159 <xsl:template match="authorgroup">
160 <div class="authorgroup">
161 <h3 class="author">
162 <xsl:value-of select="author[1]/firstname"/>
163 <xsl:text> </xsl:text>
164 <xsl:value-of select="author[1]/surname"/>
165 </h3>
166 <h3 class="author">
167 <xsl:value-of select="author[2]/firstname"/>
168 <xsl:text> </xsl:text>
169 <xsl:value-of select="author[2]/surname"/>
170 </h3>
[12e7efe2]171 <h3 class="author">
172 <xsl:value-of select="author[3]/firstname"/>
173 <xsl:text> </xsl:text>
174 <xsl:value-of select="author[3]/surname"/>
175 </h3>
[02095ae]176 </div>
177 </xsl:template>
178
179 <xsl:template match="copyright">
180 <div>
181 <p class="copyright">
[e11607f]182 <xsl:text>Copyright ©</xsl:text>
[02095ae]183 <xsl:apply-templates/>
184 </p>
185 </div>
186 </xsl:template>
187
188 <xsl:template match="year">
189 <xsl:value-of select="."/>
190 </xsl:template>
191
192 <xsl:template match="holder">
193 <xsl:value-of select="."/>
194 </xsl:template>
195
196 <xsl:template match="bibliosource">
197 <div>
198 <p class="copyright">
199 <em>
200 <xsl:apply-templates/>
201 </em>
202 </p>
203 </div>
204 </xsl:template>
205
206 <xsl:template match="subtitle|author|firstname|surname|legalnotice"/>
207
208</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.