OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
[XSL] incrementing a variable in a for-each
This page's ID:
10910
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Perhaps this might help [url=http://www.biglist.com/lists/xsl-list/archives/200210/msg01105.html]http://www.biglist.com/lists/xsl-list/archives/200210/msg01105.html[/url] There are several different tips on this but they all seem to center on the fact that you can't change the value of a variable once it's bound. I'm not that good on XSL, but can't you use <xsl:value-of select="count(YOUR_SELECT_HERE)"/> and compare that to a value? /Dan <edit>Hold it, just found this [url=http://www.javertising.com/webtech/codesamples/recursion.asp]http://www.javertising.com/webtech/codesamples/recursion.asp[/url] It seems to do more or less exactly what you need (providing I understood your templates correctly...) It's a recursive template. </edit> [url=http://www.dmsproject.com/] [img]http://www.dmsproject.com/gif/sig3.gif[/img] [/url] [url=http://faq.ozoneasylum.com/FaqWiki/shownode.php?sortby=rating&id=260]{cell 260}[/url] -{ a vibration is a movement that doesn't know which way to go }- [This message has been edited by DmS (edited 02-18-2003).]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »