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

Re: Recursive Template ??

Subject: Re: Recursive Template ??
From: JBryant@xxxxxxxxx
Date: Thu, 2 Jun 2005 16:43:08 -0500
 Re: Recursive Template ??
If you dig around in the archives, you'll find oodles of them.

The general principle works like this:

<xsl:template name="someTemplate">
  <xsl:param name="someParam"/>
  <!-- do some processing -->
  <xsl:if test="not(someStopCondition)"
    <xsl:call-template name="someTemplate">
      <xsl:with-param name="someParam" select="someValue"/>
    </xsl:call-template>
  </xsl:if>
</xsl:template>

Endless variations exist, but they all come down to the following 
proposition: recuse as many times as needed until some stop condition is 
met.

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)





"Bovy, Stephen J" <STEPHEN.Bovy@xxxxxx> 
06/02/2005 04:32 PM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc

Subject
Spam: Recursive Template ??






Is it possible to create a "recursive" template 
that works in the same way as a recursive function call ??? 

Current Thread

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.