|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








