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

Replacement for boolean !?

Subject: Replacement for boolean !?
From: "Palaniappan, Krishnasamy" <PalaniK@xxxxxxxxxxx>
Date: Tue, 19 Dec 2000 15:21:41 -0500
xsl condition if boolean
> 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


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.