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

RE: logical operators in *test*

Subject: RE: logical operators in *test*
From: "Kienle, Steven C [PGRD/0200]" <steven.c.kienle@xxxxxxxxxxxxx>
Date: Wed, 29 Oct 2003 10:14:37 -0600
xsl logical operators
Michael Kay said:

Why do people have such difficulty discovering this basic information?
(I am seriously interested to know, because it's such a frequent
problem).


I can offer a theory, but is it accurate I can't say because I didn't have
the problem myself.

My main assumption is that most XSLT developers come from developer
backgrounds.

In programming, nearly every language has two AND/OR concepts: bit wise and
logical.  Some clearly differentiate the two, like C with the && and &
operators, and some don't.  That means depending on from which path a
developer comes to XSLT, they may never have seen the "words" AND or OR in a
program in their lives.  (This is similar to the procedural vs. functional
confusion in XSLT.)

The other side, which isn't always thought of, is that English, as it is
used by a lot of people, doesn't use AND and OR in a strictly logical sense.
You'd ask: "How many people live in London and New York?"  We know what is
meant: in a logical sense the query most likely means "How many people live
in London or New York?"  And just typing that feel awkward.  Of course,
there are times when we mean AND in the logical sense: "How many people live
in the UK and earn more the 500,000 Pounds a year?"  This may drive some
people to specifically look for unambiguous language operators for AND and
OR rather than using the "words."

Is any of this right?  Well, probably not, although I'm sure if you were
developing in C prior to moving to XSLT, you'd start by using && and ||
rather than AND and OR.

	Steve

This communication is intended solely for the use of the addressee and may
contain information that is legally privileged, confidential or exempt from
disclosure.  If you are not the intended recipient, please note that any 
dissemination, distribution, or copying of this communication is strictly 
prohibited.  Anyone who receives this message in error should notify the 
sender immediately and delete it from his or her computer.


 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.