Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 07, 2011 @ 06:01
    Fuji Kusaka
    0

    jquery Slideshow

    Hi All,

     

    Am working on a slideshow and using an XSLT . But i dont know how i will get my Div  Id to imcrement since for each div it uses the same ID(fragment-1) and for each loop it needs to increment from (div id=fragment-1, div id=fragment-2 and so on).

    Anyone can help me out on this?

     

    Fuji

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jun 07, 2011 @ 08:07
    Jan Skovgaard
    0

    Hi Fuji

    In your loop I suppose you should use position() to make sure the div's have unique id's.

    for instance like this...

    <xsl:for-each select="yourstatement">
        <div id="fragment-{position()}">
             <!-- HTML code -->
        </div>
    </xsl:for-each>

    Is this what you're thinking about?

    /Jan

  • Pete 213 posts 285 karma points
    Mar 13, 2012 @ 18:40
    Pete
    0

    Awesome, just found this and it solved my problem!

    Thanks Jan

  • 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