Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sun 403 posts 395 karma points
    Mar 18, 2009 @ 01:36
    sun
    0

    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?

  • Tommy Poulsen 514 posts 708 karma points
    Mar 18, 2009 @ 07:52
    Tommy Poulsen
    0

    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

  • Petr Snobelt 923 posts 1534 karma points
    Mar 18, 2009 @ 08:29
    Petr Snobelt
    0

    Sometimes creating variable "1,2,3,4, ..." and then use umbraco library split function is helpful

    Petr

  • Tommy Poulsen 514 posts 708 karma points
    Mar 18, 2009 @ 08:38
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies