Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I want to do this for(int i=10;i>0;i++) { ... } or: int i=10; while( i>0) { ... i--; } The function like these how to implement by using xslt?
Hi Sun, you could do it with a for-each, limiting on e.g. position of the node, or using recursion which will enable you to simulate a for-loop. See the examples here: http://blackpoint.dk/umbraco-workbench.aspx?Snippet=/umbraco-workbench/packages/gridviewcontrols.aspx
Tommy
Sometimes creating variable "1,2,3,4, ..." and then use umbraco library split function is helpful Petr
oops, wrong link above. The right one is this: http://blackpoint.dk/umbraco-workbench.aspx?Snippet=/umbraco-workbench/xslt/looping.aspx
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to do this by using xslt
I want to do this
for(int i=10;i>0;i++)
{
...
}
or:
int i=10;
while( i>0)
{
...
i--;
}
The function like these how to implement by using xslt?
Hi Sun,
you could do it with a for-each, limiting on e.g. position of the node, or using recursion which will enable you to simulate a for-loop.
See the examples here:
http://blackpoint.dk/umbraco-workbench.aspx?Snippet=/umbraco-workbench/packages/gridviewcontrols.aspx
Sometimes creating variable "1,2,3,4, ..." and then use umbraco library split function is helpful
Petr
oops, wrong link above. The right one is this:
http://blackpoint.dk/umbraco-workbench.aspx?Snippet=/umbraco-workbench/xslt/looping.aspx
is working on a reply...