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] Label format modification question.

I presume you are talking about the XSL stylesheets.

The punctuation actually comes from two places. The trailing period is added
by the gentext templates. In common/en.xml, you will see this:

   <l:context name="title-numbered">
      <l:template name="appendix" text="Appendix&#160;%n.&#160;%t"/>
      <l:template name="article/appendix" text="%n.&#160;%t"/>
      <l:template name="section" text="%n.&#160;%t"/>

The "." after %n is the trailing period.  You can customize this template
using the methods described in my book to remove that period:


The punctuation after a chapter or section component number is generated by
a template in mode 'intralabel.punctuation', which is defined in
common/labels.xsl as:

<xsl:template match="*" mode="intralabel.punctuation">

This outputs a ".", and is how the punctuation after all elements is handled
by default.  If you want to distinguish how the chapter part of the number
is punctuated, then add this template to your customization layer:

<xsl:template match="chapter" mode="intralabel.punctuation">

It outputs a dash instead of a period for chapter only.  If you want the
same thing for appendices, then make it match="chapter|appendix".

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "McKinstry, Scott A" <scott.a.mckinstry@lmco.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, May 13, 2004 4:04 AM
Subject: [docbook-apps] Label format modification question.

When I compose for html using the Docbook sly sheets the labels of my
sections come out in the following format:


I need them to be


This means changing the first . to a - and removing the last .

I have searched the stylesheets and cant find where the population is
applied between the numbers.

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit

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