for-each is not an iteration structure, although you can think that if you
as accustomed to C's for loop. When a for-each structure is entered, each
node in the node-set is processed using the same template, and the results
are concatenated in the same order. The node processing may happen in
parallel, in as many threads as the processor chooses to. Of course, the
processor may choose to do it with a single thread, and process each node
sequentially, but you cannot force this (why would one de-optimize the
processing?). This is why there is no way to 'stop' the iteration -- there
is none.

If you want to iterate, do it with a recursive template. That's the way to
do it in functional programming languages like XSLT. You can thus exert
full control over the iteration.

=============================================
Marcelo Jaccoud Amaral
Petrobrás (http://www.petrobras.com.br)
mailto:[EMAIL PROTECTED]
=============================================
There are only 10 kinds of people in the world: those who understand binary
and those who don't.




                                                                                
                               
                      [EMAIL PROTECTED]                                         
                               
                      h                        Para:     [EMAIL PROTECTED]      
                         
                                               cc:                              
                               
                      05/05/2003 06:35         Assunto:  exit command for 
<xsl:for-each>                       
                      Favor responder a                                         
                               
                      fop-user                                                  
                               
                                                                                
                               
                                                                                
                               




Hi @ all

[ENGLISH]
Does somewon knows, how i can stop or terminate an <xsl:for-each> loop?

[GERMAN]
Weiss jemand, wie ich eine <xsl:for-each> Schlaufe stoppen oder beenden
kann?

THX
Elmar Hurni
Web Technologies & Applications




___________________________________________________________________________________


Diese E-Mail ist nur fuer die als Empfaenger genannte Person oder
Gesellschaft bestimmt. Wenn Sie diese
E-Mail irrtuemlich erhalten haben, bitten wir Sie, den Absender zu
benachrichtigen und die E-Mail auf Ihrem
Computersystem zu loeschen.
___________________________________________________________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to