r4727 - trunk/BOOK/stylesheets

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu Jul 14 11:26:26 PDT 2005


Author: manuel
Date: 2005-07-14 12:26:25 -0600 (Thu, 14 Jul 2005)
New Revision: 4727

Modified:
   trunk/BOOK/stylesheets/blfs-nochunks.xsl
Log:
Full removed graphics from nochunks output.

Modified: trunk/BOOK/stylesheets/blfs-nochunks.xsl
===================================================================
--- trunk/BOOK/stylesheets/blfs-nochunks.xsl	2005-07-14 18:24:02 UTC (rev 4726)
+++ trunk/BOOK/stylesheets/blfs-nochunks.xsl	2005-07-14 18:26:25 UTC (rev 4727)
@@ -7,11 +7,10 @@
     <!-- We use XHTML -->
   <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.68.1/xhtml/docbook.xsl"/>
 
-  <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
+    <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
   <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
 
    <!-- Including our others customized templates -->
-  <xsl:include href="xhtml/lfs-admon.xsl"/>
   <xsl:include href="xhtml/lfs-index.xsl"/>
   <xsl:include href="xhtml/lfs-mixed.xsl"/>
   <xsl:include href="xhtml/lfs-sections.xsl"/>
@@ -25,6 +24,23 @@
   <xsl:param name="ulink.target" select="''"></xsl:param>
   <xsl:param name="css.decoration" select="0"></xsl:param>
 
+    <!-- Don't use graphics in admonitions -->
+  <xsl:param name="admon.graphics" select="0"/>
+
+    <!-- Changing the admonitions output tagging -->
+  <xsl:template name="nongraphical.admonition">
+    <div class="{name(.)}">
+      <div class ="admonhead">
+        <h3 class="admontitle">
+          <xsl:apply-templates select="." mode="object.title.markup"/>
+        </h3>
+      </div>
+      <div class="admonbody">
+        <xsl:apply-templates/>
+      </div>
+    </div>
+  </xsl:template>
+
     <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)
     Commented out until can do section numbering
   <xsl:template name="sect2.titlepage">
@@ -151,10 +167,6 @@
   color: #900;
 }
 
-div.admonhead img {
-  display: none;
-}
-
 h3.admontitle {
   padding-left: 2.5em;
   padding-top: 1em;




More information about the blfs-book mailing list