This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xsl:if question
- To: <xsl-list at mulberrytech dot com>
- Subject: xsl:if question
- From: "Matthew Cordes" <mcorde61 at maine dot edu>
- Date: Fri, 7 Apr 2000 03:37:18 -0400
- Reply-To: xsl-list at mulberrytech dot com
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