This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

paramter passing problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]