Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-10-22 09:17:19


Author: fmhess
Date: 2007-10-22 09:17:19 EDT (Mon, 22 Oct 2007)
New Revision: 40282
URL: http://svn.boost.org/trac/boost/changeset/40282

Log:
Eliminated the possibility of empty <variablelist> elements in enum
references (invalid docbook, apache fop doesn't like it).

Text files modified:
   trunk/tools/boostbook/xsl/type.xsl | 8 +++++---
   1 files changed, 5 insertions(+), 3 deletions(-)

Modified: trunk/tools/boostbook/xsl/type.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/type.xsl (original)
+++ trunk/tools/boostbook/xsl/type.xsl 2007-10-22 09:17:19 EDT (Mon, 22 Oct 2007)
@@ -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>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk