xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jacc...@petrobras.com.br
Subject Re: exit command for <xsl:for-each>
Date Mon, 05 May 2003 12:48:18 GMT

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:jaccoud@petrobras.com.br
=============================================
There are only 10 kinds of people in the world: those who understand binary
and those who don't.




                                                                                         
                     
                      Elmar.Hurni@agi.c                                                  
                     
                      h                        Para:     fop-user@xml.apache.org         
                     
                                               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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org







---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Mime
View raw message