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]

Still can't sort conditionally


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

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