Re: [Boost-docs] [boostbook][patch] patches to trunk

Subject: Re: [Boost-docs] [boostbook][patch] patches to trunk
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2007-10-15 14:16:51


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

Here's another little patch to trunk, which eliminates the possibility of
empty <variablelist> elements in enum references (invalid docbook, apache fop
doesn't like it).

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

iD8DBQFHE3ZV5vihyNWuA4URAvsNAJ9kHTWV3ok036Dly7huWU2fJYphyACfUciR
T3X/rI0zAa3kYulkL2sNE2k=
=wwSF
-----END PGP SIGNATURE-----

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

Index: tools/boostbook/xsl/type.xsl
===================================================================
--- tools/boostbook/xsl/type.xsl (revision 40048)
+++ tools/boostbook/xsl/type.xsl (working copy)
@@ -1136,9 +1136,11 @@
             <xsl:apply-templates select="para" mode="annotation"/>
           </xsl:if>
           <xsl:apply-templates select="description"/>
- <variablelist spacing="compact">
- <xsl:apply-templates select="enumvalue" mode="reference"/>
- </variablelist>
+ <xsl:if test="enumvalue/purpose | enumvalue/description">
+ <variablelist spacing="compact">
+ <xsl:apply-templates select="enumvalue" mode="reference"/>
+ </variablelist>
+ </xsl:if>
         </xsl:with-param>
 
       </xsl:call-template>

--Boundary-00=_WZ3EHin3wyZRh7y--


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