cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Reufsteck" <>
Subject limited number of loops with call-template?
Date Tue, 06 Nov 2007 13:17:30 GMT
Hi list!

I'm using a template, which once called from outside  starts calling itself
as long as a certain condition is true. But after a certain amount of calls
(1.100 times) it seems stopping to call itself. The processing stops in the
middle of the xml-document without throwing an exception and without
throwing the resulting xml-document.

This is the template:

<xsl:template name="baum">
	<xsl:param name="position"/>
	<xsl:if test="/website/ebene[position()=$position]/text() =
/website/ebene[position()=$position + 1]/text()">
		<xsl:call-template name="baum">
			<xsl:with-param name="position" select="$position +

The result looks like this:
	<baum ebene="1">
		<ebene ebene="2">
		... [further 1099 entries]
		<ebene ebene="2"/>

Has anyone an idea what to do? Any help is appreciated!


Jens Reufsteck
Hobsons GmbH
Wildunger Straße 6
60487 Frankfurt am Main

Tel: +49 (69) 255 37-140
Fax: +49 (69) 255 37-2140

Christopher Letcher, Judith Oppitz, Adam Webster
Amtsgericht Frankfurt HRB 58610

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message