Re: [xsl] Numbered Lists

Subject: Re: [xsl] Numbered Lists
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 09 Oct 2001 17:41:34 -0400
Doug,

Have you tried <xsl:number/> ? It is designed for use cases like this, and provides many options for creating different kinds and styles of numbering, for counting different things, etc.

Cheers,
Wendell

At 04:04 PM 10/9/01, you wrote:
How can I generate a numbered list for a table of contents in XSL? I can
generate and indent the table of contents, but I can't get the numbering to
work. I thought of using the count() function. That works nicely for the
chapters in the contents, but fails for the chapter names in the document.
(They should match.) I thought of using a variable, but that seems quite
messy. Any suggestions?


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread