Eric Niebler wrote:
Doug, your change to docbook.xsl on Feb. 20 (http://tinyurl.com/fv3kj) has broken xpressive's documentation. For header files that contain *only* functions and/or enums, the header synopsis is empty. Adding a struct to the header causes the synopsis to appear.

The attached patch fixes it for me. I've already committed this, but it couldn't hurt for someone else to check my work.

--
Eric Niebler
Boost Consulting
www.boost-consulting.com
Index: docbook.xsl
===================================================================
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/docbook.xsl,v
retrieving revision 1.18
diff -b -d -u -r1.18 docbook.xsl
--- docbook.xsl 20 Feb 2006 03:09:03 -0000      1.18
+++ docbook.xsl 18 Mar 2006 00:25:00 -0000
@@ -113,11 +113,14 @@
         </xsl:if>

         <xsl:if test="descendant::class|descendant::struct|descendant::union
-                      |descendant::function|descendant::free-function-group">
+                      |descendant::function|descendant::free-function-group
+                      |descendant::overloaded-function|descendant::enum">
           <xsl:call-template name="synopsis">
             <xsl:with-param name="text">
               <xsl:apply-templates mode="synopsis"
-                
select="namespace|class|struct|union|function|free-function-group">
+                select="namespace|class|struct|union
+                         |function|free-function-group
+                         |overloaded-function|enum">
                 <xsl:with-param name="indentation" select="0"/>
               </xsl:apply-templates>
             </xsl:with-param>

Reply via email to