[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Filter by array parameter
----- Original Message -----
From: "Giancarlo Rossi" <giancarlo_rossi@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Saturday, October 28, 2006 9:59 AM Subject: Filter by array parameter I need to know how is possible to pass an array string to a Xpath expressionI think you have two options, either pass the string as you do and use string matching: Filter: alitalia,ryanair add separators: ,alitalia,ryanair, ($searchParam) Compare: msxsl:node-set($base)/item[contains(concat(',', item, ','), $searchParam)] "> Alternatively add the parameter as a nodelist, you'll have to change it something like <airlines><airline>alitalia</airline>..... Then you can compare directly as you did initially. -- Joe
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|