Subject: RE: [xsl] logical operators in *test* From: "Kienle, Steven C [PGRD/0200]" <steven.c.kienle@xxxxxxxxxxxxx> Date: Wed, 29 Oct 2003 10:14:37 -0600 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] logical operators in *tes, Wendell Piez | Thread | Re: RE: [xsl] logical operators in , Lawrence Mielniczuk |
RE: [xsl] non-breaking whitespace, Michael Kay | Date | [xsl] namespaces problem, belangour abdessamad |
Month |