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

RE: Replacement for boolean !?

Subject: RE: Replacement for boolean !?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 20 Dec 2000 09:36:25 -0000
xslt boolean variables
> > 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.

You've bought yourself a power drill and now you're saying you want to use
it like a hammer.

XSLT isn't that kind of language: it's not a sequential language with
updateable variables. It's a functional language: when you want to produce
some output, you have to work out how to express it as a function of the
input, not as a function of what happened "earlier" in the stylesheet.

Mike Kay 

 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.