Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP, XML, XSL and Parameters

Status
Not open for further replies.

msturges

Programmer
Mar 29, 2001
32
0
0
ZA
Hi everybody,

I'm stuck with a bit of a problem.

I have an XML document which represents a purchase order. I have created a XSL stylesheet to display the XML document. Within the XSL stylesheet I have placed two 'response' buttons, namely 'accept' and 'reject'. I need to pass a 'parameter' value:
a) to the xml document itself to identify which document is being requested.
b) once the user selects either 'accept' or 'reject' I need to pass the same parameter on to a subsequent 'asp' page.

I am at a complete loss as to how I can achieve this.

PLEASE HELP!!!

thanks
 
Considering you're using MSXML to transform the xml document to HTTP, check out the IXSLProcessor object, which has an AddParameter method..

In your stylesheet, just add a global

<xsl:param name=&quot;myparameter&quot;/>

To pass this variable to your output page, use it like this:

<a href=&quot;mypage.asp?anything={$myparameter}&quot;>test</a>

And voila!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top