Author: randy
Date: 2005-10-18 22:13:12 -0600 (Tue, 18 Oct 2005)
New Revision: 5224

Added:
   trunk/BOOK/gnome/add/dummy-accessibility.xml
   trunk/BOOK/gnome/add/dummy-libraries.xml
   trunk/BOOK/gnome/add/dummy-utilities.xml
Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/gnome/add/add.xml
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/stylesheets/blfs.css
   trunk/BOOK/stylesheets/xhtml/lfs-sections.xsl
   trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl
Log:
Added category headers to the GNOME Add-on packages Table-of-Contents. Many 
thanks to Manuel for the XML wizardry to make this happen

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent      2005-10-19 03:51:47 UTC (rev 5223)
+++ trunk/BOOK/general.ent      2005-10-19 04:13:12 UTC (rev 5224)
@@ -1,4 +1,4 @@
-<!ENTITY day          "18">
+<!ENTITY day          "19">
 <!ENTITY month        "10">
 <!ENTITY year         "2005">
 <!ENTITY version      "svn-&year;&month;&day;">

Modified: trunk/BOOK/gnome/add/add.xml
===================================================================
--- trunk/BOOK/gnome/add/add.xml        2005-10-19 03:51:47 UTC (rev 5223)
+++ trunk/BOOK/gnome/add/add.xml        2005-10-19 04:13:12 UTC (rev 5224)
@@ -14,51 +14,61 @@
   utilities to the <application>GNOME</application> environment. Feel free to
   install them on an as needed or as desired basis.</para>
 
+  <!-- This is used as a TOC separator -->
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="dummy-libraries.xml"/>
+
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="libgnomecups.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="libgnomeprint.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="libgnomeprintui.xml"/>
-
-  <!-- excluding GAL from the project at this point. It is now obsolete
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gal.xml"/>
-  -->
-
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gtkhtml.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="libgtkhtml.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="evolution-data-server.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gtksourceview.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="java-access-bridge.xml"/>
+
+  <!-- This is used as a TOC separator -->
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="dummy-utilities.xml"/>
+
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="bug-buddy.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gtksourceview.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gedit.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="eog.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="ggv.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="file-roller.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gconf-editor.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-utils.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="system-tools-backends.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-system-monitor.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="nautilus-cd-burner.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-media.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-audio.xml"/>
-
-  <!-- excluding nautilus-media from the project at this point. It is broken
-  and Googling shows the package could very well be obselete now.
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="nautilus-media.xml"/>
-  -->
-
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-netstatus.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gcalctool.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gpdf.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gucharmap.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="zenity.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="epiphany.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnomemeeting.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-games.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gdm.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="system-tools-backends.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gpdf.xml"/>
+
+  <!-- This is used as a TOC separator -->
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="dummy-accessibility.xml"/>
+
+
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="at-spi.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="libgail-gnome.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="java-access-bridge.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-speech.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gnome-mag.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnopernicus.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gok.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="epiphany.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnomemeeting.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="gnome-games.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gdm.xml"/>
 
+  <!-- excluding GAL from the project at this point. It is now obsolete
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; href="gal.xml"/>
+  -->
+
+  <!-- excluding nautilus-media from the project at this point. It is broken
+  and Googling shows the package could very well be obselete now.
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"; 
href="nautilus-media.xml"/>
+  -->
+
 </chapter>

Added: trunk/BOOK/gnome/add/dummy-accessibility.xml
===================================================================
--- trunk/BOOK/gnome/add/dummy-accessibility.xml        2005-10-19 03:51:47 UTC 
(rev 5223)
+++ trunk/BOOK/gnome/add/dummy-accessibility.xml        2005-10-19 04:13:12 UTC 
(rev 5224)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
+   
+<sect1 role="dummy">
+
+  <sect1info>
+    <othername>$LastChangedBy$</othername>
+    <date>$Date$</date>
+  </sect1info>
+
+  <title>Accessibility</title>
+  <para/>
+</sect1> 


Property changes on: trunk/BOOK/gnome/add/dummy-accessibility.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedBy Date

Added: trunk/BOOK/gnome/add/dummy-libraries.xml
===================================================================
--- trunk/BOOK/gnome/add/dummy-libraries.xml    2005-10-19 03:51:47 UTC (rev 
5223)
+++ trunk/BOOK/gnome/add/dummy-libraries.xml    2005-10-19 04:13:12 UTC (rev 
5224)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
+   
+<sect1 role="dummy">
+
+  <sect1info>
+    <othername>$LastChangedBy$</othername>
+    <date>$Date$</date>
+  </sect1info>
+
+  <title>Libraries</title>
+  <para/>
+</sect1> 


Property changes on: trunk/BOOK/gnome/add/dummy-libraries.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedBy Date

Added: trunk/BOOK/gnome/add/dummy-utilities.xml
===================================================================
--- trunk/BOOK/gnome/add/dummy-utilities.xml    2005-10-19 03:51:47 UTC (rev 
5223)
+++ trunk/BOOK/gnome/add/dummy-utilities.xml    2005-10-19 04:13:12 UTC (rev 
5224)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
+   
+<sect1 role="dummy">
+
+  <sect1info>
+    <othername>$LastChangedBy$</othername>
+    <date>$Date$</date>
+  </sect1info>
+
+  <title>Utilities</title>
+  <para/>
+</sect1> 


Property changes on: trunk/BOOK/gnome/add/dummy-utilities.xml
___________________________________________________________________
Name: svn:keywords
   + LastChangedBy Date

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml       2005-10-19 03:51:47 UTC 
(rev 5223)
+++ trunk/BOOK/introduction/welcome/changelog.xml       2005-10-19 04:13:12 UTC 
(rev 5224)
@@ -42,6 +42,17 @@
 -->
 
     <listitem>
+      <para>October 19th, 2005</para>
+      <itemizedlist>
+        <listitem>
+          <para>[randy] - Added category headers to the GNOME Add-on packages
+          Table-of-Contents. Many thanks to Manuel Canales Esparcia for the
+          XML wizardry to make this happen.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>October 18th, 2005</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/stylesheets/blfs.css
===================================================================
--- trunk/BOOK/stylesheets/blfs.css     2005-10-19 03:51:47 UTC (rev 5223)
+++ trunk/BOOK/stylesheets/blfs.css     2005-10-19 04:13:12 UTC (rev 5224)
@@ -124,6 +124,14 @@
   margin: .4em;
 }
 
+.dummy {
+  font-weight: bold;
+  font-size: 110%; 
+  line-height: 1.8em;
+/* Removed per Bruce
+  margin-left: -1.5em; */
+}
+
 .item {
     width: 18.5em;
     float: left;

Modified: trunk/BOOK/stylesheets/xhtml/lfs-sections.xsl
===================================================================
--- trunk/BOOK/stylesheets/xhtml/lfs-sections.xsl       2005-10-19 03:51:47 UTC 
(rev 5223)
+++ trunk/BOOK/stylesheets/xhtml/lfs-sections.xsl       2005-10-19 04:13:12 UTC 
(rev 5224)
@@ -5,6 +5,9 @@
                 version="1.0">
 
 
+  <!-- Dummy sect1 files for TOC hacking -->
+  <xsl:template match="[EMAIL PROTECTED]'dummy']"/>
+   
    <!-- Sect1 attributes -->
   <xsl:template match="sect1">
     <div>

Modified: trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl
===================================================================
--- trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl    2005-10-19 03:51:47 UTC (rev 
5223)
+++ trunk/BOOK/stylesheets/xhtml/lfs-toc.xsl    2005-10-19 04:13:12 UTC (rev 
5224)
@@ -84,14 +84,23 @@
     <xsl:param name="depth.from.context" select="8"/>
     <xsl:choose>
       <xsl:when test="local-name(.) = 'sect1'">
-        <a>
-          <xsl:attribute name="href">
-            <xsl:call-template name="href.target">
-              <xsl:with-param name="context" select="$toc-context"/>
-            </xsl:call-template>
-          </xsl:attribute>
-          <xsl:apply-templates select="." mode="titleabbrev.markup"/>
-        </a>
+        <xsl:choose>
+          <xsl:when test="@role='dummy'">
+            <span class="dummy">
+              <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+            </span>
+          </xsl:when>
+          <xsl:otherwise>
+            <a>
+              <xsl:attribute name="href">
+                <xsl:call-template name="href.target">
+                  <xsl:with-param name="context" select="$toc-context"/>
+                </xsl:call-template>
+              </xsl:attribute>
+              <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+            </a>
+          </xsl:otherwise>
+        </xsl:choose>
       </xsl:when>
       <xsl:when test="local-name(.) = 'chapter' or local-name(.) = 'preface'">
         <h4>

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to