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

RE: if question

Subject: RE: if question
From: "Rigby, David" <rigbyd@xxxxxxxxxx>
Date: Fri, 7 Apr 2000 09:19:14 +0100
if question
This seems to be similar to the problem I'm encountering.  I do basically
the same ting, but assign the values for the test to two variables. I can
proves that the variables have the expected values, but my test evaluates
false even when both variables are identical (see my earlier post from my
home address for the example - please ignore the typo mentioned by the first
reply: that was not in the working source, only the email!).

David

> -----Original Message-----
> From:	Matthew Cordes [SMTP:mcorde61@xxxxxxxxx]
> Sent:	Friday, April 07, 2000 8:37 AM
> To:	xsl-list@xxxxxxxxxxxxxxxx
> Subject:	xsl:if  question
> 
> I want to show a block of text only if two xml element are different.  I'm
> not sure what the error is in the following;  Please if someone could
> explain why it doesn't work, I would greatly appreciate it.
> 
> ...
> <xsl:template match="/foo">
> 
>     <xsl:if test="{/foo/bar} != {/foo/cow}">    la la la ..... </xsl:if>
> 
> <!-- The above line is where my confusion lies.  I want to test to see if
> the two element
> are not the same.  It always evaluates to false, which is not the desired
> behavior -->
> 
> 
> </xsl:template>
> ...
> 
> -matt
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.