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

Re: Help cleaning up this 1.0 gem

Subject: Re: Help cleaning up this 1.0 gem
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Sat, 6 Oct 2007 13:11:20 +0100
Re:  Help cleaning up this 1.0 gem
On 06/10/2007, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
> > Without being able to run it, yor code sample is rather too long to
> > grock by eye so cant make too many comments, but beware != any stylesheet
> > that uses it is liable to strange bugs. In teh cases where != doesn't do
> > the same thing as not (  = ) then it almost aways does the wrong thing.
> >
>
> Just to summarize for the unaware, I think David means the following:


I did a post about this a while back which might be of interest:

http://ajwelch.blogspot.com/2007/08/when-b-and-b-both-return-true.html

Basically the rule is: "never use != where both sides are sequences of
more than one item"

There is an exception to the rule, but it's so unlikely that you'll
ever need it that I think saying "never" is acceptable...


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.