Ticket #3309: doxygen_passthrough.diff

File doxygen_passthrough.diff, 1.3 KB (added by Mathias Gaunard <loufoque@…>, 13 years ago)
  • doxygen/doxygen2boostbook.xsl

     
    12161216    </xsl:if>
    12171217  </xsl:template>
    12181218
    1219   <xsl:template match="computeroutput|orderedlist|itemizedlist|listitem"
    1220     mode="passthrough">
    1221     <xsl:element name="{name(.)}">
     1219  <xsl:template match="*" mode="passthrough">
     1220    <xsl:copy>
     1221      <xsl:copy-of select="@*"/>
    12221222      <xsl:apply-templates mode="passthrough"/>
    1223     </xsl:element>
     1223    </xsl:copy>
    12241224  </xsl:template>
     1225 
     1226 
     1227 
     1228  <xsl:template match="initializer" mode="passthrough"/>
    12251229  <xsl:template match="parameterlist" mode="passthrough"/>
    12261230
    12271231  <xsl:template match="bold" mode="passthrough">
     
    12531257      </description>
    12541258    </xsl:if>
    12551259  </xsl:template>
     1260 
     1261  <xsl:template match="ref" mode="passthrough">
     1262    <xsl:choose>
     1263      <xsl:when test="@kindref='compound'">
     1264        <classname>
     1265          <xsl:value-of select="text()"/>
     1266        </classname>
     1267      </xsl:when>
     1268      <xsl:otherwise>
     1269        <xsl:value-of select="text()"/>
     1270      </xsl:otherwise>
     1271    </xsl:choose>
     1272  </xsl:template>
    12561273
    12571274  <!-- Handle function clauses -->
    12581275  <xsl:template match="simplesect" mode="function-clauses">