|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Counter variable
> Am currently using postion () for displayin the numbers.. > > > <xsl:for-each select="//ITEM"> > <xsl:value-of select="position()" /> <xsl:value-of > select="ITEM_DESC" /><br/> </xsl:for-each> There's nothing wrong with using position(), it's often a good solution. Three alternatives are: (a) the xsl:number instruction (b) expressions such as count(preceding-sibling::*) (c) if generating HTML, generate an ordered list and leave HTML/CSS to do the numbering Michael Kay http://www.saxonica.com/
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






