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

RE: Problem with xsl:number formatting

Subject: RE: Problem with xsl:number formatting
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Thu, 09 Aug 2007 16:29:18 +0100
RE:  Problem with xsl:number formatting
> So, in my mind, 'E' is a valid token on which to start.
> 
You're definitely in implementation-defined territory here. An
implementation may or may not support a numbering sequence that starts with
'E'; if it does so, it's implementation defined whether that sequence goes
(E, F, G, H, I) or (E, G, B, D, F). 

Saxon will allow format="E" and continue E, F, G, H, I, but there's
certainly nothing in the spec to require it.

I think the only reliable way to do this across implementations is to
compute the section number (either using xsl:number or an expression such as
count(preceding-sibling::x), add 4 to rebase it, and then format it using
<xsl:number value="x" format="A"/>.

Michael Kay
http://www.saxonica.com/

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.