Subject: [xsl] Re:[xsl] Recursive Template ?? From: JBryant@xxxxxxxxx Date: Thu, 2 Jun 2005 16:43:08 -0500 |
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:[xsl] Recursive Template ?? Is it possible to create a "recursive" template that works in the same way as a recursive function call ???
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Recursive Template ??, Michael Kay | Thread | Re: [xsl] Recursive Template ??, Mukul Gandhi |
Re: [xsl] Param Element, Karl Stubsjoen | Date | Re: [xsl] Param Element, Karl Stubsjoen |
Month |