p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > XML > XSLT
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 7th, 2009, 07:11 AM
Registered User
Points: 70, Level: 1
Points: 70, Level: 1 Points: 70, Level: 1 Points: 70, Level: 1
Activity: 37%
Activity: 37% Activity: 37% Activity: 37%
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 7th, 2009, 07:50 AM
Friend of Wrox
Points: 3,131, Level: 23
Points: 3,131, Level: 23 Points: 3,131, Level: 23 Points: 3,131, Level: 23
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Nov 2007
Location: Germany
Posts: 655
Thanks: 0
Thanked 98 Times in 97 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
My blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pass parameter ArrayList java to XSLT 2.0 geek.shrek XSLT 1 August 8th, 2009 10: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 12:18 PM
Pass parameter from XSLT to ASP.NET kwilliams XSLT 3 August 17th, 2005 12:56 PM
Pass Parameter sridevi ASP Forms 2 July 12th, 2004 11:34 AM



All times are GMT -4. The time now is 07:34 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc