[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

formatting <xsl:number> for multi-level sections

Subject: formatting <xsl:number> for multi-level sections
From: "Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx>
Date: Tue, 18 Mar 2003 10:06:58 -0500 (EST)
multi level numbering
  i was looking at an example of numbering sections and 
subsections from tidwell's book, and for some sample XML code
involving <chapter>, <sect1>, <sect2> and so on, he shows
how to add multi-level numbering with a format of "1.1.1.1. ":

  <xsl:number level="multiple" count="chapter|sect1|sect2|sect3"
	format="1.1.1.1. "/>

  while the format nicely matches up with the fact that there
are four levels, isn't the format specification overkill?
it seems, from testing, that format="1. " would have worked
fine.  it seems that if more levels are needed than are
specified in the format attribute, the format is simply
padded further with whatever the last level format is.

  so if i had used format="1.A. ", i might have produced
numbering like
  
 1.
 1.A.
 1.B.
 1.B.A
 1.B.B

and so on.

  is this correct?  or is there something subtlely different
between "1. " and "1.1.1.1. "?  just being pedantic.

rday


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.