Ravindar, Biztalk Developer and Administrator

Just another BizTalk blog

For loop in xslt

   <xsl:template name="for.loop">  
   <!-- for loop templates starts here-->  
     <!-- for loop index variable-->  
     <xsl:param name="i" />  
     <!-- for loop end variable-->  
     <xsl:param name="count" />  
     <!--begin_: Line_by_Line_Output -->  
     <xsl:if test="$i <= $count">  
       <!-- This $i variable gives the increment value -->  
       <xsl:value-of select="$i"/>  
     <!--begin_: RepeatTheLoopUntilFinished-->  
     <xsl:if test="$i <= $count">  
       <xsl:call-template name="for.loop">  
         <xsl:with-param name="i">  
           <xsl:value-of select="$i + 1"/>  
         <xsl:with-param name="count">  
           <xsl:value-of select="$count"/>  

Source from http://blog.logiclabz.com/xml-xslt/for-loop-in-xslt.aspx


January 18, 2012 - Posted by | Uncategorized

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: