This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: 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@maine.edu]
> Sent:	Friday, April 07, 2000 8:37 AM
> To:	xsl-list@mulberrytech.com
> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]