Eliminate <para> elements when transforming to a <purpose> element.

[SVN r20496]
This commit is contained in:
Douglas Gregor 2003-10-26 23:32:54 +00:00
parent 13f2d55247
commit 4ab5ff9dd6

View File

@ -980,7 +980,7 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<xsl:template match="briefdescription" mode="passthrough">
<xsl:if test="text()|*">
<purpose>
<xsl:apply-templates mode="passthrough"/>
<xsl:apply-templates mode="purpose"/>
</purpose>
</xsl:if>
</xsl:template>
@ -1147,4 +1147,17 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<xsl:apply-templates select="." mode="passthrough"/>
</xsl:template>
<!-- Remove top-level "para" and elements in the purpose -->
<xsl:template match="*" mode="purpose">
<xsl:apply-templates mode="passthrough"/>
</xsl:template>
<xsl:template match="text()" mode="purpose">
<xsl:apply-templates mode="passthrough"/>
</xsl:template>
<xsl:template match="para" mode="purpose">
<xsl:apply-templates select="*|text()" mode="passthrough"/>
</xsl:template>
</xsl:stylesheet>