source: clfs-sysroot/BOOK/stylesheets/top-index.xsl@ 25e3595

Last change on this file since 25e3595 was 02095ae, checked in by Jim Gifford <clfs@…>, 18 years ago

r3633@server (orig r1649): jciccone | 2006-05-25 16:48:42 -0700
Added the Initial clfs-2.0 branch using sysroot builds.

  • Property mode set to 100644
File size: 3.6 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 Linux From Scratch
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>
105 <xsl:text>32 Bit Builds</xsl:text>
106 </h3>
107 <ul>
108 <h3>
109 <xsl:text>Under Development.</xsl:text>
110 </h3>
111 <li>
112 <h4>
113 <a href="arm">
114 <xsl:text>ARM</xsl:text>
115 </a>
116 </h4>
117 </li>
118 </ul>
119 <h3>
120 <xsl:text>64 Bit Builds</xsl:text>
121 </h3>
122 <h3>
123 <xsl:text>Multilib Builds</xsl:text>
124 </h3>
125 </div>
126 </div>
127 </xsl:template>
128
129 <xsl:template match="title">
130 <div>
131 <h1 class="title">
132 <xsl:value-of select="."/>
133 </h1>
134 </div>
135 <div>
136 <h2 class="subtitle">
137 <xsl:text>Version &version;</xsl:text>
138 </h2>
139 </div>
140 </xsl:template>
141
142 <xsl:template match="authorgroup">
143 <div class="authorgroup">
144 <h3 class="author">
145 <xsl:value-of select="author[1]/firstname"/>
146 <xsl:text> </xsl:text>
147 <xsl:value-of select="author[1]/surname"/>
148 </h3>
149 <h3 class="author">
150 <xsl:value-of select="author[2]/firstname"/>
151 <xsl:text> </xsl:text>
152 <xsl:value-of select="author[2]/surname"/>
153 </h3>
154 </div>
155 </xsl:template>
156
157 <xsl:template match="copyright">
158 <div>
159 <p class="copyright">
160 <xsl:text>Copyright (c)</xsl:text>
161 <xsl:apply-templates/>
162 </p>
163 </div>
164 </xsl:template>
165
166 <xsl:template match="year">
167 <xsl:value-of select="."/>
168 </xsl:template>
169
170 <xsl:template match="holder">
171 <xsl:value-of select="."/>
172 </xsl:template>
173
174 <xsl:template match="bibliosource">
175 <div>
176 <p class="copyright">
177 <em>
178 <xsl:apply-templates/>
179 </em>
180 </p>
181 </div>
182 </xsl:template>
183
184 <xsl:template match="subtitle|author|firstname|surname|legalnotice"/>
185
186</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.