Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Counter variable [Thread Next] RE: [xsl] Counter variableTo: Date: 5/2/2007 5:26:00 PM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
