Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#359 Allow none option for formal.title.placement

output: all formats
open
nobody
XSL (399)
5
2006-08-09
2006-08-09
Scott Cropley
No

I find it really habdy in cleaning up a document to
have some formal titles excluded from the output. A
simple change to the formal.xsl will allow this.

<xsl:param name="formal.title.placement">
figure none
example none
equation none
table none
procedure before
task none
</xsl:param>

from formal.xsl:

<xsl:variable name="content">
<xsl:choose>
<xsl:when test="$placement = 'none'">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="$placement = 'before'">
<xsl:call-template
name="formal.object.heading">
<xsl:with-param name="placement"
select="$placement"/>
</xsl:call-template>
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
<xsl:call-template
name="formal.object.heading">
<xsl:with-param name="placement"
select="$placement"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>

Discussion