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

RE: xsl:number question

Subject: RE: xsl:number question
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 4 Apr 2006 12:59:01 +0100
number question
It's a simple question, but there's no simple answer.

Remember that xsl:number bundles two operations: finding out the number, and
formatting it for display. You need to split these two operations:

<xsl:variable name="n"> 
  <xsl:number.../>
</xsl:variable>
<xsl:number value="number($n) + 1" format="...."/>

This also means you can't use level="multiple" - but you can always break
level="multiple" into a sequence of level="single" calls at different
levels.

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

 

> -----Original Message-----
> From: Paula Estrella [mailto:Paula.Estrella@xxxxxxxxxxxxxx] 
> Sent: 04 April 2006 12:14
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  xsl:number question
> 
> Hi, sorry for this very simple question. I need to use 
> xsl:number but  
> starting at a given number, how can I get the numbers 
> starting at 2 for  
> ex. ? (to display 2.1 / 2.1.1 / etc )
>   
>   Thanks
>   Paula

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.