[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: repetition

Subject: Re: repetition
From: abbouh <abbouh@xxxxxxxxxxxxxxxxx>
Date: Wed, 28 May 2003 14:38:53 +0000
repetition in xsl
OK,
thanks

Onur Esnaf a écrit :

> Hi
> You can use recursice template calls to perform such a task.
> Use a code like below.
>
> <xsl:variable name="n" select="20"/>
> <xsl:template name="Iteration">
>
>         <xsl:if test="$counter &lt; $n">
>                 <xsl:text>toto</xsl:text>
> <!-- recursive call -->
>                 <xsl:call-template name="Iteration">
>                         <xsl:with-param name="counter" select="$counter+ 1"/>
>                 </xsl:call-template>
>         </xsl:if>
> </xsl:template>
>
> -----Original Message-----
> From: abbouh [mailto:abbouh@xxxxxxxxxxxxxxxxx]
> Sent: Tuesday, May 27, 2003 8:10 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  repetition
>
> i want to know how i can repeat an instruction in xsl
> for example i want to display text "toto" n time
> whithout repeating
> <xsl:text>toto</xsl:text>   n time.
> thanks
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • repetition
    • abbouh - Tue, 27 May 2003 12:58:51 -0400 (EDT)
      • <Possible follow-ups>
      • Martinez, Brian - Tue, 27 May 2003 14:56:21 -0400 (EDT)
      • Onur Esnaf - Wed, 28 May 2003 10:09:26 -0400 (EDT)
        • abbouh - Wed, 28 May 2003 10:28:00 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.