|
Subject: Re: possible to mimic while-like behavior? From: "David Halsted" <halstedd@xxxxxxxxxx> Date: Thu, 16 Mar 2000 15:47:38 -0500 |
There's a while extension in Saxon. And you're right, it's useful.
----- Original Message -----
From: Carole E. Mah <carole@xxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, March 16, 2000 2:58 PM
Subject: 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".
>
> Imagine,
> <xsl:for-each select="foo">
> <xsl:choose>
> <xsl:when test="bar">blah</xsl:when>
> <xsl:otherwise>blort</xsl:otherwise>
> </xsl:choose>
> </xsl:for-each>
>
> 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") {
> blah
> }
>
> Is there any way to simulate, hack, or otherwise achieve this?
>
> thanks again,
> -carole
> - - - - - - - - - - - - - - - - - - - - - - - - -
> Carole E. Mah Carole_Mah@xxxxxxxxx
> Senior Programmer/Analyst
> Brown University Scholarly Technology Group
> phn 401-863-2669
> fax 401-863-9313
> http://www.stg.brown.edu/
> personal: http://www.stg.brown.edu/~carolem/
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| possible to mimic while-like behavi, Carole E. Mah | Thread | Re: possible to mimic while-like be, Mike Brown |
| Re: Microsoft XSL and Conformance, Jonathan Borden | Date | Re: Microsoft XSL and Conformance, Steve Muench |
| Month |