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