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 January 16th, 2004, 11:28 AM
Registered User
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default querystring in xslt

Hi,

I'm doing some html-form processing in xslt.

I have an xslt stylsheet which submits a form to an asp. The form values are held in the http querystring in the form 'www.domain.com?value=abcdefg&submit=dd'.

I have a further user confirmation form to submit from this asp and I'd like to use an xsl stylesheet for this. Trouble is, I can't figure out how to get my <%request.querystring(value)%> and <%request.querystring(submit)%> values into this style sheet from my asp.

Any help would be most welcome...

 
Old January 16th, 2004, 11:45 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Not quite sure I understand the first bit,
Quote:
quote:I have an xslt stylsheet which submits a form to an asp
as an xslt form can't submit anything, did you mean xhtml fiorm?
For the second part it depends on which xslt processor you are using. If msxml I suggest you get sdk helpfile from:

http://www.microsoft.com/downloads/d...displaylang=en

Basically there are two methods, both need you to have an xsl:param element in your stylesheet to accept the variable. The official method is called addParameter and you need to create axslt template and processor, plenty of examples in the sdk. The other method is to open the stylesheet via dom and select the param node. Add your Request.Querystring argument and then use the modified styleshhet to carry out the final transform. If you are doing lots of these use method one, for only a few the second is easier.

Joe (MVP - xml)





Similar Threads
Thread Thread Starter Forum Replies Last Post
using querystring melkin Classic ASP Basics 7 April 1st, 2008 09:07 AM
Querystring or not? myself Classic ASP Basics 4 July 4th, 2006 09:01 AM
querystring problem -Dman100- Classic ASP Professional 10 September 15th, 2004 09:33 PM
Querystring Alternatives lukemedway_uk Classic ASP Basics 1 October 7th, 2003 08:45 AM





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