RE: Problems with sorting in XSL

Subject: RE: Problems with sorting in XSL
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 17 Feb 2000 09:56:22 -0000
> > <xsl:param name="sort-field" select="'surname'">
> > <xsl:variable name="by-surname" select="sort-field='surname'"/>
> 
> What? Can you explain this variable assignment?

I meant to write
<xsl:variable name="by-surname" select="$sort-field='surname'"/>

The variable "by-surname" will have the value true if the parameter
$sort-field has its default value of "surname", and false if it has been set
to some other value.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread