Apologies (and bit of embarassment!) figured out the problem was with my param:
instruction not including "select" etc. works now.
Back to my learning curve...:) - Jake
On Tue, 5 Dec 2006, James F White wrote:
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
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--