xsl-list
[Top] [All Lists]

Re: breaking xsl loop or template

2005-02-17 10:42:00
Hi Prasad,
  XSLT is not a procedural language. It is based on
functional programming ideas. Its not possible to
break from a for loop in XSLT as in Java or C. The
value of select attribute in xsl:for-each loop
(xsl:for-each select="") is a "node set expression"..

You can imagine that iterations of xsl:for-each may
execute in parallel.. So breaking from a for loop
would not be possible.

For your problem, there are workarounds.. Please read 
Dave Pawson's XSLT FAQ..

Regards,
Mukul


--- Prasad Akella <avlnprasad(_at_)web(_dot_)de> wrote:

i would like to break an xsl loop until some user
action is done and then proceed further. for example

if the user were to write an exam with a set of
questions being obtained from the xml, i should be
able to display one question, wait till the user has
entered the answer and only then display the next
question. 




                
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


--~------------------------------------------------------------------
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>