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

contains() function with parameters problem...

Subject: contains() function with parameters problem...
From: James F White <jfwhite@xxxxxxxxxxxxxxxx>
Date: Tue, 5 Dec 2006 17:13:56 -0800 (PST)
 contains() function with parameters problem...
Hi! - am a newbie, so am sure this is an insanely basic thing, but can't find answers online or in my books and would appreciate any help!

this works perfectly for me:

<xsl:for-each select="NEWBKS/RECORD[contains(TITLE,'Russia')]">
 etc.

It gets all titles which contain 'Russia'.
but when I try to pass a parameter down (from php script):

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="filterby"/>

<xsl:for-each select="NEWBKS/RECORD[contains(TITLE,$filterby)]">

it's a no go. But why?? I've made sure the variable is getting passed from my php script into the XSL file so I know it's getting there. I've tried all manner of punctuation permutations and curly brackets, but have obviously missed something?

many thanks for any assistance, Jake

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.