Usually names in the detail:: namespace are replaced by "unspecified" automatically by doxygen2boostbook.xsl. But not when a public type inherits from a type in the detail namespace. Then, the ugly implementation detail shows up in the generated docs.

The following patch completely hides bases that are in the detail namespace. (I thought that would be better than showing inheritance from "unspecified".)

OK to commit?

Index: doxygen2boostbook.xsl
===================================================================
RCS file: /cvsroot/boost/boost/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl,v
retrieving revision 1.28
diff -b -d -u -r1.28 doxygen2boostbook.xsl
--- doxygen2boostbook.xsl       6 Jan 2006 20:22:00 -0000       1.28
+++ doxygen2boostbook.xsl       7 Jan 2006 00:59:59 -0000
@@ -503,6 +503,9 @@

   <!-- Inheritance -->
   <xsl:template match="basecompoundref" mode="inherit">
+    <xsl:choose>
+      <xsl:when test="contains(string(.), $boost.doxygen.detail)"/>
+      <xsl:otherwise>
     <inherit>
       <!-- Access specifier for inheritance -->
       <xsl:attribute name="access">
@@ -512,6 +515,8 @@

       <xsl:apply-templates mode="passthrough"/>
     </inherit>
+      </xsl:otherwise>
+    </xsl:choose>
   </xsl:template>

   <xsl:template match="basecompoundref"/>


--
Eric Niebler
Boost Consulting
www.boost-consulting.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests: 
https://lists.sourceforge.net/lists/listinfo/boost-docs

Reply via email to