www.webdeveloper.com
Results 1 to 2 of 2

Thread: looping

  1. #1
    Join Date
    Apr 2003
    Posts
    240

    looping

    Hi,

    I'm looping thro' a list of values and displaying the values separated by a comma
    like this- a1,a2,a3,a4,
    I want to avoid the comma for the last vale.How can I do this in xslt?
    Mili

  2. #2
    Join Date
    Sep 2003
    Location
    Australia
    Posts
    37
    u could count the number of values using count() function and then insert commas based on an if...

    <xsl:if test="$x < $count">
    ,
    </xsl:if>


    HTH

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles