Subject: [xsl] paramter passing problem From: "Dom" <dom@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 10 Mar 2001 16:41:02 -0000 |
Hi, I have an xsl stylesheet that does a basic search through an xml file. I am using two paramters that I am passing in from a webpage. Param1 Value of search string (taken from text box) Param2 Category of search specified through drop down menu *** <xsl:if test="contains(translate($param1,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJKLM NOPQRSTUVWXYZ'),(translate($param2,'abcdefghijklmnopqrstuvwxyz','ABCDEFGHIJK LMNOPQRSTUVWXYZ')))" > *** $param2 has any of the following values: First_Name Title ISBN Author passed into using JavaScript. This relates to my xml file which has the basic structure <Book> <Title> </Title> <Author> </Author> <ISBN> </ISBN> <First_Name> </First_Name> </Book> It however does not work, if however I hard code, for example First_Name in place of $param2 the search works fine. Could any one please help. Many thanks Dom --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.237 / Virus Database: 115 - Release Date: 07/03/2001 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] [exsl] EXSLT 1.0 Drafts 0, Dave Hartnoll | Thread | RE: [xsl] paramter passing problem, Michael Kay |
Re: [xsl] [exsl] EXSLT 1.0 - Common, Uche Ogbuji | Date | Re: [xsl] [exsl] EXSLT 1.0 - Common, Uche Ogbuji |
Month |