Added category headers to the GNOME Add-on packages Table-of-Contents. Many thanks to Manuel for the XML wizardry to make this happen

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5224 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2005-10-19 04:13:12 +00:00
parent 005d8327e6
commit d5a426bb56
9 changed files with 116 additions and 33 deletions

View File

@ -1,4 +1,4 @@
<!ENTITY day "18">
<!ENTITY day "19">
<!ENTITY month "10">
<!ENTITY year "2005">
<!ENTITY version "svn-&year;&month;&day;">

View File

@ -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="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="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="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"/>
<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="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="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"/>
<!-- 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"/>
-->
<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="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"/>
</chapter>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -41,6 +41,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>

View File

@ -124,6 +124,14 @@ div.toc ul li h3, div.toc ul li h4 {
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;

View File

@ -5,6 +5,9 @@
version="1.0">
<!-- Dummy sect1 files for TOC hacking -->
<xsl:template match="sect1[@role='dummy']"/>
<!-- Sect1 attributes -->
<xsl:template match="sect1">
<div>

View File

@ -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>