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]

RE: Problems with sorting in XSL


> > <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

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