Subject: RE: [xsl] xslt:number numeration starts !=1 From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 30 Nov 2009 15:45:53 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xslt:number numeration st, David Carlisle | Thread | [xsl] Counting the number of elemen, Alex Muir |
Re: [xsl] reading files from direct, Mike Odling-Smee | Date | [xsl] wordML to docbook -- please h, Andreas Peter |
Month |