This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Numbered Lists


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]