Subject: Re: AndExpression
From: Paul DuBois <paul@xxxxxxxxxxxx>
Date: Wed, 26 Nov 2003 11:20:31 -0600
|
> No, they can not appear together.
> Either it will be 'EFSA', or 'No dissemination' or another value.
>
> So the 2nd part is not always true!
Okay, let's see. Here is the expression:
($doc_scope!='EFSA' or $doc_scope!='No dissemination')
If $doc_scope is 'EFSA' the first test is false and the second is true.
The result of (false or true) is: true
If $doc_scope is 'No dissemination', the first test is true and the second is
false.
The result of (true or false) is: true
>
> -----Original Message-----
> From: Paul DuBois [mailto:paul@xxxxxxxxxxxx]
> Sent: 26 November 2003 17:27
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: AndExpression
>
>
> On Wed, Nov 26, 2003 at 04:41:46PM +0100, SHEIKH Sajjad wrote:
> > Hi all,
> > The following statement does not seem to work and I have no idea why?
> >
> > <xsl:when test="@objname='Document' and ($doc_scope!='EFSA' or
> > $doc_scope!='No dissemination')">
> >
> > Does anyone know why it doesn't work?
> > /s
>
> No, although one possible problem is that $doc_scope cannot ever be both
> 'EFSA' and 'No dissemination' at the same time. It appears that the
> second part of your 'and' is always true (and thus useless).
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: AndExpression, (continued)
- SHEIKH Sajjad - Wed, 26 Nov 2003 11:36:23 -0500 (EST)
- SHEIKH Sajjad - Wed, 26 Nov 2003 11:38:26 -0500 (EST)
- Andreas L. Delmelle - Wed, 26 Nov 2003 12:19:48 -0500 (EST)
- Paul DuBois - Wed, 26 Nov 2003 12:20:39 -0500 (EST) <=
- Brinkman, Theodore - Wed, 26 Nov 2003 11:59:45 -0500 (EST)
- Martinez, Brian - Wed, 26 Nov 2003 12:04:25 -0500 (EST)
- SHEIKH Sajjad - Wed, 26 Nov 2003 12:14:06 -0500 (EST)
- Anthony Zawacki - Wed, 26 Nov 2003 12:15:55 -0500 (EST)
|
|