Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 74709 invoked from network); 8 Dec 2004 14:47:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Dec 2004 14:47:42 -0000 Received: (qmail 32351 invoked by uid 500); 8 Dec 2004 14:47:25 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 32290 invoked by uid 500); 8 Dec 2004 14:47:25 -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 32245 invoked by uid 99); 8 Dec 2004 14:47:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from anna.aranex-provider.de (HELO anna.aranex-provider.de) (62.111.75.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 08 Dec 2004 06:47:19 -0800 Received: from [192.168.0.40] (p508A21B8.dip0.t-ipconnect.de [80.138.33.184]) by anna.aranex-provider.de (8.12.5-180903/8.12.3) with ESMTP id iB8ElA6S037389 for ; Wed, 8 Dec 2004 15:47:10 +0100 (CET) (envelope-from johannes.schaefer@uidesign.de) Message-ID: <41B71469.5070406@uidesign.de> Date: Wed, 08 Dec 2004 15:49:13 +0100 From: Johannes Schaefer 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: <1AB048BB58C35849AD36CDE65F16C110E0FACA@idaexc01.emea.cpqcorp.net> <41B71078.3080808@apache.org> In-Reply-To: <41B71078.3080808@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-MailScanner: Found to be clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Maybe this helps, too: Element:before { content:Value; } content:counter(Name); counter-increment(Name); Seems to be CSS 2.0, I never tried it out. see, e.g. http://en.selfhtml.org/css/eigenschaften/pseudoformate.htm#nummerierung the example there does *not* display in Firefox and MSIE it *does* in Opera Cheers, Johannes Ross Gardler wrote: > Jacques, Olivier (OCBU-Test Infra) wrote: > >> Hello, >> >> Section numbering is enabled for document rendered in PDF, but not for >> HTML (tigris skin). >> I would like to get auto-numbering for section headers: >> 1. Section1 >> 1.1 Section1.1 >> 1.2 Section1.2 >> 2. Section2 >> >> I am unable to find where to enable something like this. >> >> Any ideas? > > > It is not available in the HTML stylesheets, it would be good to see > this as a patch. > > You can see how it is done in PDF by looking in the file document2fo.xsl > in the common skin, see > http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/main/webapp/skins/common/xslt/fo/document2fo.xsl > > > If you search for "numbersections" in that file you'll see the relevant > parts. > > To add this to the HTML versions of pages you need to edit > document2html.xsl - see > http://svn.apache.org/viewcvs.cgi/forrest/trunk/main/webapp/skins/common/xslt/html/document2html.xsl?rev=109943&view=auto > > > An appropriate configuration element should also be added to the > skinconf.xml file. > > Ross > > -- User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg Fon +49 (0)7141 377 000 * Fax +49 (0)7141 377 00-99 Gesch�ftsstelle: User Interface Design GmbH * Lehrer-G�tz-Weg 11 * D-81825 M�nchen www.uidesign.de Buch "User Interface Tuning" von Joachim Machate & Michael Burmester www.user-interface-tuning.de Attraktivit�t von interaktiven Produkten messen mit www.attrakdiff.de