This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]