xsl-list
[Top] [All Lists]

RE: [xsl] xslt:number numeration starts !=1

2009-11-30 10:46:23
I thought to 
"from" attribute of xslt:number, but it doesn't work. can you help me?

I haven't tried to understand your problem (it involves too much digging
around previous messages), but there is no option in xsl:number to start
numbering at a value other than one. If you guessed that the from attribute
would do this, then you guessed wrong (and it's best not to guess). What you
can do is:

<xsl:variable name="n" as="xs:integer">
  <xsl:number (options excluding format)/>
</xsl:variable>
<xsl:number value="$n+6" format="..."/>

Regards,

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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>