Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 52930 invoked from network); 6 Nov 2007 14:18:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2007 14:18:51 -0000 Received: (qmail 40625 invoked by uid 500); 6 Nov 2007 14:18:32 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 40596 invoked by uid 500); 6 Nov 2007 14:18:32 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 40585 invoked by uid 99); 6 Nov 2007 14:18:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 06:18:32 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [213.205.33.53] (HELO jack.tiscali.it) (213.205.33.53) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 14:18:35 +0000 Received: from chirale (217.133.32.17) by jack.tiscali.it (7.3.122) id 47217FD3001B6F9B for users@cocoon.apache.org; Tue, 6 Nov 2007 15:18:12 +0100 Received: by chirale (sSMTP sendmail emulation); Tue, 06 Nov 2007 15:18:12 +0100 Date: Tue, 6 Nov 2007 15:18:12 +0100 From: Tobia To: users@cocoon.apache.org Subject: Re: limited number of loops with call-template? Message-ID: <20071106141714.GK3945@chirale.ikkoku> References: <00cf01c82077$62c27f90$8c01a8c0@hobsons.loc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00cf01c82077$62c27f90$8c01a8c0@hobsons.loc> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Checked: Checked by ClamAV on apache.org Jens Reufsteck wrote: > 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. I wouldn't write a template that calls itself recursively that many times, unless I was sure that the implementation is tail-recursive and that I am writing a tail-recursive template. Said another way, try and traverse the document using matching (not named) templates and apply-templates, along with modes if needed. Based on your scarce snippet, you could try something like this: ... Of course, I don't have the slightest idea what baums and ebenes are, so this is probably not what you need :-) Tobia --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org