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

possible to mimic while-like behavior?

Subject: possible to mimic while-like behavior?
From: "Carole E. Mah" <carole@xxxxxxxxxxxxxxxxxx>
Date: Thu, 16 Mar 2000 14:58:36 -0500 (EST)
possible to mimic while-like behavior?
I know there are only two conditionals possible in xsl stylesheets,
<xsl:if> and <xsl:choose> (inside which one has <xsl:when> ... </xsl:when>
and <xsl:otherwise>...</xsl:otherwise> with nesting allow).

However, there is no "while" or "until".

<xsl:for-each select="foo">
  <xsl:when test="bar">blah</xsl:when>

Now imagine that when the conditions are such that <xsl:otherwise> is
matched, one wants to break out of the <xsl:for-each>.

e.g., speaking in a Perl-esque way, I want
  while ($foo != "bar") {

Is there any way to simulate, hack, or otherwise achieve this?

thanks again,
- - - - - - - - - - - - - - - - - - - - - - - - - 
Carole E. Mah                Carole_Mah@xxxxxxxxx
         Senior Programmer/Analyst
  Brown University Scholarly Technology Group
            phn 401-863-2669
            fax 401-863-9313
 personal: http://www.stg.brown.edu/~carolem/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.