Subject: Still can't sort conditionally From: Heather Lindsay <heather.lindsay@xxxxxxxxxxxxx> Date: Tue, 8 Aug 2000 10:01:31 -0400 |
hi all, I'm trying to sort only when the parameter "SORT_BY" has been set to some value other than 'undefined'. Below is the relevant snippet of code. While trying to figure out the problem, I noticed something that I felt was odd. I tried just printing out the value of "SORT_BY" somewhere else in my code and where I put "<xsl:value-of select="$SORT_BY"/>" nothing appeared in the output. I tried outputing the other parameter that I have and that value did appear in the output. As far as I can tell, I'm not doing anything different for one parameter than the other. Has anyone else seen something like this? Or can anyone see what I'm doing wrong here? Any suggestions would be greatly appreciated (this is actually a simplified version of the problem I posted a couple of days ago, "Sort Problem"). Thanks in advance, Heather <xsl:param name = "SORT_BY" select="'undefined'"/> <xsl:choose> <xsl:when test="$SORT_BY != 'undefined'"> <xsl:apply-templates select="ToDoList/ActionItem"> <xsl:sort select="ProcessName"/> </xsl:apply-templates> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="ToDoList/ActionItem"/> </xsl:otherwise> </xsl:choose> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: formatting first item different, RSuiter | Thread | RE: Still can't sort conditionally, Heather Lindsay |
formatting first item differently t, Eric Taylor | Date | Re: xslt question, Brendan McKenna |
Month |