xsl-list
[Top] [All Lists]

Re: [xsl] Filter by a parameter

2006-10-24 05:14:24

But it doesnt works...


Please see the list posting guidelines which suggest showing a small
input and the required output. 

if $supplier_param is set to something that tests as false (such as the
empty string) then $test will be set by
<xsl:otherwise>
*
</xsl:otherwise>
to be the string of length three consisting of a newline a * and another
newline.
so
 Supplier=$testtests that the supplier element in teh original xml
consists of a newline a * and a newline.

What do you want to test, are you expecting a * at all in the input or
do you want a kind of wildcard, in which case you don't need a test at
all

I suspect you want

/Root/Mynode[Complete='true' and ($supplier_param='' or 
$supplier_param=Supplier)]

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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