Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2009, 07:11 AM
Authorized User
 
Join Date: Oct 2009
Posts: 15
Thanks: 3
Thanked 0 Times in 0 Posts
Default How to pass parameter to XSLT

Hi All,

I want to Pass parameter from one XSLT1 to XSLT2 and use those parameter in XSLT2.

What i want to do is i am generating Html file using XSLT1 then in html generating some hyperlink for another XSLT.

so when user click on that link it execute XSLT2 and create another HTMl page based on the parameter passed from XSLT1.



Below is the code for generating hyper link In XSLT:

Code:

 <a
   href="UserDetail.xsl?UserID={$userID}&amp;loction={$location}">
         <xsl:value-of select="UserID"/>
 </a>


How can i do that ? can you please shed some light on it.


Thanks

Hari
 
Old November 7th, 2009, 07:50 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

You would need to pass the parameters to server-side code like JSP or like ASP.NET code and then in that code you could read the parameters and run the XSLT transformation. How you do that exactly depends very much on the server-side framework you use.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
pass parameter ArrayList java to XSLT 2.0 geek.shrek XSLT 1 August 8th, 2009 09:55 PM
how to pass a control parameter and process a return parameter in sqldatasource jayshankar ASP.NET 2.0 Basics 1 January 1st, 2009 10:18 AM
pass parameter naeem_ul_hussan Classic ASP Basics 2 August 30th, 2007 11:18 AM
Pass parameter from XSLT to ASP.NET kwilliams XSLT 3 August 17th, 2005 11:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.