xsl-list
[Top] [All Lists]

RE: variable in filter doesn't work??

2002-09-20 10:22:07
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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>