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]
Other format: [Raw text]

RE: passing parameter from javascript




> 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


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