mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Eliminate <para> elements when transforming to a <purpose> element.
[SVN r20496]
This commit is contained in:
parent
13f2d55247
commit
4ab5ff9dd6
@ -980,7 +980,7 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:template match="briefdescription" mode="passthrough">
|
<xsl:template match="briefdescription" mode="passthrough">
|
||||||
<xsl:if test="text()|*">
|
<xsl:if test="text()|*">
|
||||||
<purpose>
|
<purpose>
|
||||||
<xsl:apply-templates mode="passthrough"/>
|
<xsl:apply-templates mode="purpose"/>
|
||||||
</purpose>
|
</purpose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
@ -1147,4 +1147,17 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:apply-templates select="." mode="passthrough"/>
|
<xsl:apply-templates select="." mode="passthrough"/>
|
||||||
</xsl:template>
|
</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>
|
</xsl:stylesheet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user