This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Replacement for boolean !?
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Replacement for boolean !?
- From: "Palaniappan, Krishnasamy" <PalaniK at diebold dot com>
- Date: Tue, 19 Dec 2000 15:21:41 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Hi,
> I have a need to use something like a boolean. I tried several things but I am running out of ideas to handle something like this in XSLT. I have several blocks of code in my stylesheet. Basically, what I need to do is set a boolean variable to true if some condition is satisfied and act accordingly, SEVERAL BLOCKS down. So, something like this does not seem to be an option:
> <xsl:variable>
> <xsl:choose>
> <xsl:when test="...">
> </xsl:when>
> <xsl:otherwise>
> ...
> </xsl:otherwise>
> </xsl:choose>
> </xsl:variable>
>
> Could anyone please give me an example as to how I could use boolean variables. This is what I need.
>
> 1. Set boolean to false, initially.
> 2. Open FOR loop.
> 3. Check condition. If true, set boolean to true.
> 4. If boolean is true, do something.
> 5. set boolean to false.
> 6. close loop.
>
> Please advise.
> Thanks,
> Krish
> p.s.: I have subscribed to the digest. So, is there anyway I could get any responses to my questions before the end of day?
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list