source: clfs-embedded/BOOK/stylesheets/top-index.xsl@ 39a9ea5

Last change on this file since 39a9ea5 was 122ebf0, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated Makefile to use the new stylesheets.

  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[a9e389d]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>
[e5cc0ec]17 Cross-Compiled Linux From Scratch - Embedded
[a9e389d]18 </title>
19 <style type="text/css">
20 <xsl:text>
[122ebf0]21/* Global settings */
[a9e389d]22body {
[122ebf0]23 font-family: verdana, tahoma, helvetica, arial, sans-serif;
[a9e389d]24 text-align: left;
25 background: #fff;
[122ebf0]26 color: #222;
[a9e389d]27 margin: 1em;
28 padding: 0;
29 font-size: 1em;
30 line-height: 1.2em
31}
32
33a:link { color: #22b; }
[122ebf0]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;}
[a9e389d]38
[122ebf0]39h1, h2 h3, h4 {
[a9e389d]40 color: #000;
41 font-weight: bold;
[122ebf0]42 line-height: 1em;
[a9e389d]43}
44
45h1 { font-size: 173%; text-align: center; }
[122ebf0]46h2 { font-size: 144%; text-align: center; }
47h3 { font-size: 120%; }
48h4 { font-size: 110%; }
[a9e389d]49
[122ebf0]50.toc {
[a9e389d]51 padding-left: 1em;
52}
53
[122ebf0]54.toc ul li h3, .toc ul li h4 {
[a9e389d]55 margin: .4em;
56}
57
[122ebf0]58.book h1 {
[a9e389d]59 background: #f5f6f7;
60 margin: 0px auto;
61 padding: 0.5em;
62}
63
[122ebf0]64.book h2 {
[a9e389d]65 background: #dbddec;
66 margin: 0px auto;
67 padding: 0.2em;
68}
[122ebf0]69.author, .copyright {
[a9e389d]70 background: #f5f6f7;
71 margin: 0px auto;
[122ebf0]72 padding: 0.5em 1em;
[a9e389d]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">
[122ebf0]93 <xsl:apply-templates/>
94 <hr/>
[a9e389d]95 <div class="toc">
96 <h3>
[4ef72df]97 <xsl:text>Embedded Architecture (Under Development)</xsl:text>
[a9e389d]98 </h3>
99 <ul>
100 <li>
101 <h4>
102 <a href="x86">
103 <xsl:text>X86</xsl:text>
104 </a>
105 </h4>
106 </li>
[99fc891]107 <li>
108 <h4>
109 <a href="mips">
[33bc2cb]110 <xsl:text>MIPS</xsl:text>
[99fc891]111 </a>
112 </h4>
113 </li>
[4d57ce8]114 <li>
115 <h4>
116 <a href="arm">
117 <xsl:text>ARM</xsl:text>
118 </a>
119 </h4>
120 </li>
[cbe8492]121 <li>
122 <h4>
123 <a href="wrt">
[4d57ce8]124 <xsl:text>Wireless Routers -- MIPS Based</xsl:text>
[cbe8492]125 </a>
126 </h4>
127 </li>
[a9e389d]128 </ul>
129 </div>
130 </div>
131 </xsl:template>
132
133 <xsl:template match="title">
[122ebf0]134 <h1 class="title">
135 <xsl:value-of select="."/>
136 </h1>
137 <h2 class="subtitle">
138 <xsl:text>Version &version;</xsl:text>
139 </h2>
[a9e389d]140 </xsl:template>
141
142 <xsl:template match="authorgroup">
[122ebf0]143 <h3 class="author">
144 <xsl:value-of select="author[1]/firstname"/>
145 <xsl:text> </xsl:text>
146 <xsl:value-of select="author[1]/surname"/>
147 </h3>
148 <h3 class="author">
149 <xsl:value-of select="author[2]/firstname"/>
150 <xsl:text> </xsl:text>
151 <xsl:value-of select="author[2]/surname"/>
152 </h3>
153 <h3 class="author">
154 <xsl:value-of select="author[3]/firstname"/>
155 <xsl:text> </xsl:text>
156 <xsl:value-of select="author[3]/surname"/>
157 </h3>
[a9e389d]158 </xsl:template>
159
160 <xsl:template match="copyright">
[122ebf0]161 <p class="copyright">
162 <xsl:text>Copyright ©</xsl:text>
163 <xsl:apply-templates/>
164 </p>
[a9e389d]165 </xsl:template>
166
167 <xsl:template match="year">
168 <xsl:value-of select="."/>
169 </xsl:template>
170
171 <xsl:template match="holder">
172 <xsl:value-of select="."/>
173 </xsl:template>
174
175 <xsl:template match="bibliosource">
[122ebf0]176 <p class="copyright">
177 <em>
178 <xsl:apply-templates/>
179 </em>
180 </p>
[a9e389d]181 </xsl:template>
182
183 <xsl:template match="subtitle|author|firstname|surname|legalnotice"/>
184
185</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.