[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Filter by a parameter

Subject: Re: Filter by a parameter
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 24 Oct 2006 13:14:06 +0100
Re:  Filter by a parameter
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.