This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Chapter boiler plate text, xslt stylesheets.
- From: Dave Pawson <dpawson at nildram dot co dot uk>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 07 Oct 2003 19:43:35 +0100
- Subject: RE: [docbook-apps] Chapter boiler plate text, xslt stylesheets.
At 14:26 07/10/2003 -0400, Jeff Beal wrote:
Numbering happens in the 'label.markup' mode and the templates that control
that are contained in common/labels.xsl. The template matching 'section'
can be modified as follows:
(at end of template)
<xsl:choose>
<xsl:when test="@label">
<xsl:value-of select="@label"/>
</xsl:when>
<xsl:when test="$label != 0">
<!-- add appropriate 'from' attribute to number this from the book -->
<xsl:number count="section" from="book"/>
</xsl:when>
</xsl:choose>
?? Feature request.
'nother param
<xsl:param name="sect1.from.number" select="'book'"/>
(or something better)
Is it worthwhile ?
end goal is
<xsl:number count="section" >
<xsl:if test="$sect1.from.number">
<xsl:attribute name="from">
<xsl:value-of select="$sect1.from.number"/>
</xsl:attribute>
</xsl:if>
regards DaveP
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.