|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 ???
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








