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]
Other format: [Raw text]

RE: variable in filter doesn't work??


> why doesn't this work?
> -----------------------
> <xsl:variable name="filter" select='"cat = &apos;zoro&apos;"'/> 

Because the value of your predicate is a string. The string is converted
to a boolean, and a non-empty string is always treated as "true".
> 
> I really trying to filter based on a parameter, if the 
> parameter is empty, don't filter.  If it is something, filter.
> 
I see no parameter.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 


 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]