This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Numbered Lists
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Numbered Lists
- From: Wendell Piez <wapiez at mulberrytech dot com>
- Date: Tue, 09 Oct 2001 17:41:34 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@mulberrytech.com
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