r165 - trunk/BOOK/stylesheets

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Fri Feb 11 13:06:19 PST 2005


Author: manuel
Date: 2005-02-11 14:06:19 -0700 (Fri, 11 Feb 2005)
New Revision: 165

Added:
   trunk/BOOK/stylesheets/top-index.xsl
Log:
Added top-index.xsl.

Added: trunk/BOOK/stylesheets/top-index.xsl
===================================================================
--- trunk/BOOK/stylesheets/top-index.xsl	2005-02-11 20:59:00 UTC (rev 164)
+++ trunk/BOOK/stylesheets/top-index.xsl	2005-02-11 21:06:19 UTC (rev 165)
@@ -0,0 +1,170 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY % general-entities SYSTEM "../general.ent">
+  %general-entities;
+]>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns="http://www.w3.org/1999/xhtml"
+                version="1.0">
+
+  <xsl:output method="html" encoding="iso-8859-1"/> 
+  
+  <xsl:template match="/">
+    <html>
+      <head>
+        <title>
+          Hardened Linux From Scratch
+        </title>
+        <style type="text/css">
+          <xsl:text>
+body {
+  font-family: sans-serif;
+  text-align: left;
+  background: #fff;
+  color: #333;
+  margin: 1em;
+  padding: 0;
+  font-size: 1em;
+  line-height: 1.2em
+}
+
+a:link { color: #22b; }
+a:visited { color: #7e4988; }
+a:hover, a:focus { color: #d30e08; }
+a:active { color: #6b77b1;}
+
+h1, h2 {
+  color: #000;
+  font-weight: bold;
+}
+
+h3, h4, h5, h6 {
+  color: #222;
+}
+
+h1 { font-size: 173%; text-align: center; }
+h2 { font-size: 144%;  text-align: center; }
+h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
+h4 { font-size: 110%;}
+
+div.toc {
+  padding-left: 1em;
+  margin-top: 1em;
+}
+
+div.toc ul li h3, div.toc ul li h4 {
+  margin: .4em;
+}
+
+div.book {
+  padding-bottom: 0.5em;
+}
+
+div.book h1 {
+  background: #f5f6f7;
+  margin: 0px auto;
+  padding: 0.5em;
+}
+
+div.book h2 {
+  background: #dbddec;
+  margin: 0px auto;
+  padding: 0.2em;
+}
+div.authorgroup, div p.copyright {
+  background: #f5f6f7;
+  margin: 0px auto;
+  padding:  1em 0.5em;
+}
+
+hr {
+  background: #dbddec;
+  height: .3em;
+  border: 0px;
+  margin: 0px auto;
+  padding: 0;
+}
+          </xsl:text>
+        </style>
+      </head>
+      <body>
+        <xsl:apply-templates/>
+      </body>
+    </html>
+  </xsl:template>
+  
+  <xsl:template match="bookinfo">
+    <div class="book">
+      <div class="titlepage">
+        <xsl:apply-templates/>
+        <hr/>
+      </div>
+      <div class="toc">
+        <h3>
+          <xsl:text>Choose your prefered Libc implementation to build the system based on</xsl:text>
+        </h3>
+        <ul>
+          <li>
+            <h4>
+              <a href="glibc">
+                <xsl:text>Glibc based</xsl:text>
+              </a>
+            </h4>
+          </li>
+          <li>
+            <h4>
+              <a href="uclibc">
+                <xsl:text>uClibc based</xsl:text>
+              </a>
+            </h4>
+          </li>
+        </ul>
+      </div>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="title">
+    <div>
+      <h1 class="title">
+        <xsl:value-of select="."/>
+      </h1>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="subtitle">
+    <div>
+      <h2 class="subtitle">
+        <xsl:value-of select="."/>
+      </h2>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="authorgroup">
+    <div class="authorgroup">
+      <h3 class="corpauthor">
+        <xsl:value-of select="corpauthor"/>
+      </h3>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="copyright">
+    <div>
+      <p class="copyright">
+        <xsl:text>Copyright (c)</xsl:text>
+        <xsl:apply-templates/>
+      </p>
+    </div>
+  </xsl:template>
+  
+  <xsl:template match="year">
+    <xsl:value-of select="."/>
+  </xsl:template>
+  
+  <xsl:template match="holder">
+    <xsl:value-of select="."/>
+  </xsl:template>
+  
+  <xsl:template match="abstract|author|firstname|surname|legalnotice"/>
+  
+</xsl:stylesheet>


Property changes on: trunk/BOOK/stylesheets/top-index.xsl
___________________________________________________________________
Name: svn:keywords
   + "Author Date Revision Id"




More information about the hlfs-dev mailing list