OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Chapter boiler plate text, xslt stylesheets.


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>

You will probably have to dig through some of the other code in this
template to be sure that everything is taken care of, but this should get
you started.

Jeff


> -----Original Message-----
> From: Dave Pawson [mailto:dpawson@nildram.co.uk]
> Sent: Tuesday, October 07, 2003 2:19 PM
> To: Jeff Beal; docbook-apps@lists.oasis-open.org
> Subject: RE: [docbook-apps] Chapter boiler plate text, xslt 
> stylesheets.
> 
> 
> At 14:09 07/10/2003 -0400, Jeff Beal wrote:
> >Set the parameter 'chapter.autolabel' to 0.  When this is 
> non-zero, the
> >stylesheets pull the gentext from the context named 
> 'title-numbered'.  When
> >it is zero, they pull the gentext from the context named 
> 'title-unnumbered',
> >which, as you see, has the proper template without 'Chapter %t'.
> 
> 
> Thanks Jeff. That's it.
> 
> One more if I may...
> (Hoist by mine own I think).
> 
> Is it possible to get a chapter/sect1 to 'continue' numbering,
> or at least to number from n?
> 
> I need the chapters unumbered, and the sect1's (beneath them)
> numbered. .... or is it a case of turn off numbering and
> manually number it?
> 
> 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/.
> 
> 
> 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]