gnome-doc-utils fixes



Two patches are attached.  Each is a simple XSLT fix.

division.diff fixes a problem with articles in appendices.  Without the
patch, the appendix is displayed with the table of contents at the top,
instead of as its own chunk.  You can see this bug in the Sound Juicer
Manual and the 2.10 Release Notes.  Pretty high impact for anybody using
these stylesheets with our documentation.  (Which, official or not,
people are going to use these stylesheets and Yelp.)

xref.xsl fixes a bug with using @endterm on xref elements.  If @endterm
is pointed to a block elements (which people are reportedly doing), then
this nice little inline link becomes a block, screwing the whole page
up.  None of my docs use @endterm, but I guess Ubuntu's into it.

Pick and choose.  They're independant of each other.  I think the first
is pretty critical, the other less so.

--
Shaun

Index: xslt/docbook/html/db2html-division.xsl
===================================================================
RCS file: /cvs/gnome/gnome-doc-utils/xslt/docbook/html/db2html-division.xsl,v
retrieving revision 1.19
diff -u -r1.19 db2html-division.xsl
--- xslt/docbook/html/db2html-division.xsl	20 Jan 2005 05:43:57 -0000	1.19
+++ xslt/docbook/html/db2html-division.xsl	3 Mar 2005 18:16:23 -0000
@@ -575,8 +575,8 @@
   </xsl:param>
   <xsl:call-template name="db2html.division.div">
     <xsl:with-param name="divisions" select="
-                    bibliography | glossary | index      | lot | refentry |
-                    sect1        | section  | simplesect | toc "/>
+                    appendix | bibliography | glossary | index      | lot |
+                    refentry | sect1        | section  | simplesect | toc "/>
     <xsl:with-param name="info" select="articleinfo"/>
     <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
     <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
Index: xslt/docbook/html/db2html-xref.xsl
===================================================================
RCS file: /cvs/gnome/gnome-doc-utils/xslt/docbook/html/db2html-xref.xsl,v
retrieving revision 1.10
diff -u -r1.10 db2html-xref.xsl
--- xslt/docbook/html/db2html-xref.xsl	28 Dec 2004 01:12:00 -0000	1.10
+++ xslt/docbook/html/db2html-xref.xsl	3 Mar 2005 18:16:38 -0000
@@ -114,7 +114,7 @@
         <xsl:copy-of select="$content"/>
       </xsl:when>
       <xsl:when test="$endterm">
-        <xsl:apply-templates select="key('idkey', $endterm)"/>
+        <xsl:apply-templates select="key('idkey', $endterm)/node()"/>
       </xsl:when>
       <xsl:otherwise>
         <xsl:call-template name="db.xref.content">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]