[Boost-docs] [boostbook][patch] deal with part/part/appendix

Subject: [Boost-docs] [boostbook][patch] deal with part/part/appendix
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-10-22 17:25:41


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here's a patch against trunk that extends the hack in docbook.xsl for dealing
with nested <part> elements. It handles the case of <appendix> children of
part.

- --
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHHN0Y5vihyNWuA4URAgG2AJ9xBdRKrK1BjgRbvTzPNT5z9H8DOACguJqT
Vxrd6JFsWQTaKFfP1+i3rpI=
=oLUe
-----END PGP SIGNATURE-----

--Boundary-00=_Y0NHHAieHYZ80Tg
Content-Type: text/x-diff;
  charset="utf-8";
  name="part_appendix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
        filename="part_appendix.patch"

Index: tools/boostbook/xsl/docbook.xsl
===================================================================
--- tools/boostbook/xsl/docbook.xsl (revision 40281)
+++ tools/boostbook/xsl/docbook.xsl (working copy)
@@ -461,7 +461,7 @@
   <xsl:template match="part/part/partinfo|part/article/articleinfo">
     <chapterinfo><xsl:apply-templates/></chapterinfo>
   </xsl:template>
- <xsl:template match="part/part/chapter">
+ <xsl:template match="part/part/chapter|part/part/appendix">
     <section>
       <xsl:for-each select="./@*">
         <xsl:attribute name="{name(.)}">
@@ -471,7 +471,7 @@
       <xsl:apply-templates/>
     </section>
   </xsl:template>
- <xsl:template match="part/part/chapter/chapterinfo">
+ <xsl:template match="part/part/chapter/chapterinfo|part/part/appendix/appendixinfo">
     <sectioninfo><xsl:apply-templates/></sectioninfo>
   </xsl:template>
 </xsl:stylesheet>

--Boundary-00=_Y0NHHAieHYZ80Tg--


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:40 UTC