[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] section numbering
Hi Evelyne, On Tuesday 02 January 2007 20:37, Huber Evelyne wrote: > Hi! > > I came up with a problem when numbering sections (toc). Instead of > "1.1.1." I'd like to use "1.1.1" (without last dot). Is there a > parameter that can be set or where can I change this? Thanks in advance > :-) You need a customization layer with the following content: ------------------------------ <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- Change this href, if neccessary--> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> <xsl:param name="section.autolabel" select="1"/> <xsl:param name="section.label.includes.component.label" select="0"/> <xsl:param name="local.l10n.xml" select="document('')"/> <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> <l:l10n language="en" english-language-name="English"> <l:context name="title-numbered"> <l:template name="chapter" text="Chapter %n  %t"/> <l:template name="sect1" text="*%n %t"/> <l:template name="sect2" text="%n %t"/> <l:template name="sect3" text="%n %t"/> <l:template name="sect4" text="%n %t"/> <l:template name="sect5" text="%n %t"/> <l:template name="section" text="%n %t"/> </l:context> </l:l10n> </l:i18n> </xsl:stylesheet> ------------------------------ You have to adapt the l:l10n element, if you write in a different language. See also contents of language files in common/*.xml in your respective DocBook stylesheet directory. Hope that helps. Tom -- Thomas Schraitle
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]