Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 57745 invoked from network); 8 Dec 2004 17:15:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 17:15:15 -0000 Received: (qmail 54488 invoked by uid 500); 8 Dec 2004 17:14:55 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 54434 invoked by uid 500); 8 Dec 2004 17:14:54 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: user@forrest.apache.org Delivered-To: mailing list user@forrest.apache.org Received: (qmail 54391 invoked by uid 99); 8 Dec 2004 17:14:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from pythagoras.zen.co.uk (HELO pythagoras.zen.co.uk) (212.23.3.140) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 09:14:52 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by pythagoras.zen.co.uk with esmtp (Exim 4.30) id 1Cc5Or-0007Vh-B3 for user@forrest.apache.org; Wed, 08 Dec 2004 17:14:49 +0000 Message-ID: <41B73688.8070406@apache.org> Date: Wed, 08 Dec 2004 17:14:48 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: Question: how to enable document section numbering? References: <1AB048BB58C35849AD36CDE65F16C110E0FB7B@idaexc01.emea.cpqcorp.net> In-Reply-To: <1AB048BB58C35849AD36CDE65F16C110E0FB7B@idaexc01.emea.cpqcorp.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-Pythagoras-IP: [82.69.78.226] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Please attache this to an issue on the issue tracker, it is likely to get lost in the mail lists. http://issues.cocoondev.org/secure/CreateIssue!default.jspa Oh, and thanks for your contribution - very valuable. Ross Jacques, Olivier (OCBU-Test Infra) wrote: > Jacques, Olivier (OCBU-Test Infra) <> wrote: > >>Thanks, I finally figure out how to do. I'm about to provide >>a patch with parameters in skinconf.xml. > > > Here it is (on top of 0.6): > > - First, modification of skinconf.xml to have numbers in the TOC: > > with-numbers="true"/> > > - Numbers in the TOC is handled in site2xhtml.xsl: > $ diff -bruN site2xhtml.xsl.orig site2xhtml.xsl > --- site2xhtml.xsl.orig 2004-10-10 14:04:50.000000000 +0200 > +++ site2xhtml.xsl 2004-12-08 15:35:52.309861500 +0100 > @@ -294,6 +294,9 @@ > >
  • > > + test="contains($config/toc/@with-numbers,'true')"> > + level="multiple" />. > + > > > > > - Numbers in the document itself is handled in document2html.xsl. > Unfortunately, I was unable to retrieve a configuration value (like a > did for site2xhtml) from within document2html.xsl. The idea I had was to > add an attribute in skinconf's . Here is an > "hardcoded" version anyway: > > $ diff -bruN document2html.xsl.orig document2html.xsl > --- document2html.xsl.orig 2004-10-10 14:05:04.000000000 +0200 > +++ document2html.xsl 2004-12-08 16:50:17.974008600 +0100 > @@ -129,13 +131,20 @@ > > >
    > -

    > + > +

    > + level="multiple" />. > + > +

    > >
    >
    > >
    > -

    > +

    > + level="multiple" />. > + > +

    > >
    > > @@ -149,13 +158,19 @@ > >
    > > -

    > +

    > + level="multiple" />. > + > +

    > > >
    > > > -
    > +
    > + level="multiple" />. > + > +
    > >
    > >