Subject: Equality From: "Jon Wynacht" <jwynacht@xxxxxxxxx> Date: Fri, 19 Nov 1999 17:31:06 -0800 |
Given this: <xsl:variable name="modId"> <xsl:value-of select="@Id"/> </xsl:variable> With a possible value of: l3switch8510_527-Course-Modules-Module_nav.xml or l3switch8510_541-Course-Modules-Module_nav.xml <xsl:variable name="currentMod"> <xsl:value-of select="/PXML/@About"/> </xsl:variable> With only one possible value of: l3switch8510_527-Course-Modules-Module_nav.xml I want to do this: <xsl:choose> <xsl:when test="$modId = $currentMod"> Hi i'm the current module </xsl:when> <xsl:otherwise> Hi i'm another module </xsl:otherwise> </xsl:choose> But it doesn't work. Am I comparing incorrectly? Please advise. Thanks! Jon --------------------------------------------- Jon Wynacht Web Developer - Worldwide Field Productivity Cisco Systems 408-527-5261 jwynacht@xxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Announce: Sixth Edition of XSLT/XPa, G. Ken Holman | Thread | RE: Equality, Mark Hayes |
RE: Multiple Input, Richard Reich | Date | RE: Announce: IBM XSL Editor, Betty L. Harvey |
Month |