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] hierarchical "."


On Mon, Mar 31, 2003 at 10:16:22PM +0200, flo at abwesend dot de wrote:
> Hello again,
> 
> has anyone an idea how to change the headers of sections, chapters etc from
> 
> 1.
> 2.
> 2.1.
> 2.2.
> 2.3.
> 2.3.1.
> 2.3.2.
> 3.
> 
> to 
> 
> 1
> 2
> 2.1
> 2.2
> 2.3
> 2.3.1
> 2.3.2
> 3
> 
> by removing the dot?

The dots are part of the generated text strings defined
in common/en.xml (or whatever lang you use) in the
stylesheet distribution.  In that
file, the <l:context name="title-numbered"> element has
entries like this:

<l:template name="chapter" text="Chapter&#160;%n.&#160;%t"/>
                                                ^
                                                ^

The %n is the number, and &#160; is non-breaking space.
You can customize these strings in a customization
layer as described in this doc:

http://www.sagehill.net/xml/docbookxsl/CustomMethods.html#CustomGenText

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs at sco dot com

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


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