[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: breaking xsl loop or template

Subject: Re: breaking xsl loop or template
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Thu, 17 Feb 2005 09:42:00 -0800 (PST)
xsl loop
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@xxxxxx> 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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.