xsl-list
[Top] [All Lists]

Re: break or exit in xsl?

2005-03-07 09:08:25
Thanks David for your comments.. 

Regarding this point..
It might for example execute them in parallel and
just assemble the results at the end.

I agree the XSLT processor is free to process nodes
(of the node-set corresponding to XPath in select
attribute) in whatever manner it seems fit (either
parallel or any way!). But in the end, the output
should reflect the document order..

So for the original poster, we can say, breaking out
of xsl:for-each loop would not fit into the processing
model of XSLT.. Probably thats why XSLT has'nt
provided this feature..

Regards,
Mukul

--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:

  So it is sequential processing from "document
order
  point of view"..  

Yes, the point being though that this only
determines the position of
the result fragments. You can be sure that the
result of applying the
body of the for-each to the first node in document
order is appended to
the result tree before the result of processing the
second node, but you
can not assume that the system actually executes the
code in that order.
It might for example execute them in parallel and
just assemble the
results at the end.

David



        
                
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>