Subject: RE: [xsl] AndExpression From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx> Date: Wed, 26 Nov 2003 18:17:56 +0100 |
-----Original Message----- From: Martinez, Brian [mailto:brian.martinez@xxxxxxxxxxx] Sent: 26 November 2003 18:04 To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: [xsl] AndExpression > From: SHEIKH Sajjad [mailto:Sajjad.SHEIKH@xxxxxxxxxxx] > Sent: Wednesday, November 26, 2003 9:40 AM > Subject: RE: [xsl] AndExpression > > > If I use > <xsl:when test="@objname='Document' and $doc_scope!='EFSA'"> > It works means it does not display the node where doc_scope != EFSA > I want to display only those nodes which are neither EFSA nor No > dissemination so I try the following > <xsl:when test="@objname='Document' and > ($doc_scope!='EFSA' or $doc_scope!='No dissemination')"> The 'or' is the problem here--if $doc_scope = "No dissemination", then the expression is already true and it won't bother evaluating the second part. What you want is for all three conditions to be true, so write: <xsl:when test="@objname='Document' and $doc_scope != 'EFSA' and $doc_scope != 'No dissemination'"> hth, b. | brian martinez brian.martinez@xxxxxxxxxxx | | lead gui programmer 303.357.3548 | | cheap tickets, part of trip network fax 303.357.3380 | | 6560 greenwood plaza blvd., suite 400 englewood, co 80111 | | cendant travel distribution services http://www.cheaptickets.com/ | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ______________________________________________________________ This message has been scanned for all viruses by BTnet VirusScreen. The service is delivered in partnership with MessageLabs. This service does not scan any password protected or encrypted attachments. If you are interested in finding out more about the service, please visit our website at http://www.btignite.com/internetservices/btnet/products_virusscreen.htm ============================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] AndExpression, Anthony Zawacki | Thread | RE: [xsl] AndExpression, SHEIKH Sajjad |
RE: [xsl] xsl:variable?, Martinez, Brian | Date | Re: [xsl] AndExpression, Paul DuBois |
Month |