[xsl] XSL:Number, value attribute

Subject: [xsl] XSL:Number, value attribute
From: "Chris Bowditch" <bowditch_chris@xxxxxxxxxxx>
Date: Fri, 27 Jun 2003 08:05:02 +0000
Dear All,

I'm using Xalan v2.5.1 on JDK 1.3.1 and running into some problems using xsl:number.

I can successfully number nodes in a hierarchical fashion using level=multiple and format="1.a.i" However, I need to start numbering my nodes from a seed, e.g 3,4,5 instead of 1,2,3. So I thought I could specify value="position()+{$seed}" but whenever I specify the value attribute, the formatting is lost and the multiple level numbering is lost.

Furthermore, nodes end up getting numbered 2,4,6 instead of 1,2,3 with value="position()". I tried specifying the count attribute to fix this but I had no luck.

Is the value attribute of xsl:number supported at all?

I would be grateful for any ideas,

Chris

_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband



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



Current Thread