This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing parameter from javascript
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 5 Aug 2002 11:49:12 +0100
- Subject: RE: [xsl] passing parameter from javascript
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I had posted the query given below but got no reponse... I am new
> to xsl and would appreciate some help...
us not answer a question, must be an anomoly !
> I am having an xml which contains employee details like the following.
>
> <Employee>
> <ID>T1464</ID>
> <Name>TOM</Name>
> <Designation>System Architect</Designation>
> <Project>Project 1</Project>
> </Employee>
>
> I populate a combo with designations from the xml. On the basis
> of the designation selected by the user i have to list out all
> the employees with their details in a table.
> Is it possible to set a variable in a javascript when the
> designation is selected and use this variable to filter the
> employees? Or pass this parameter to another xsl whixh does the
> filtering of employees??? Does any one have some sample code on
> using this param in xsl??? Is there a better and simpler way? How
> do i go about this?
this is what the xsl:param is for, though each XSLT processor has different
methods for invoking it, now if you are using javascript and IE its easy and
FAQ
cheers, jim
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list