[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: URL parameters in xsl

Subject: RE: URL parameters in xsl
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Sun, 20 Jul 2003 11:22:02 +0100
xslt url parameters
Hi.

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Martin Lampen
> Sent: Tuesday, May 20, 2003 10:22 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  URL parameters in xsl
> 
> 
> Thanks for all your replies. None of these solutions work 
> though. the xsl file won't recognise the url - is this 
> because it's generated from an .asp file!
> 
> help!!!
> 
> martin

Others already gave you hints how to do it with xslt, here is how you
could do it in asp:

' Create a template
Set xslt = Server.CreateObject("Msxml2.XSLTemplate")

' Create the xsl document as free threaded
Set xslDoc = Server.CreateObject("Msxml2.FreeThreadedDOMDocument")

' load the stylesheet
xslDoc.async = false
xslDoc.load "stylesheet.xsl"

' set the templates stylesheet to yours
set xslt.stylesheet = xslDoc

' Create the xml document
set xmlDoc = Server.CreateObject("Msxml2.DOMDocument")

' load the xml
xmlDoc.async = false
xmlDoc.load "file.xml"

' Create the processor
Set xslProc = xslt.createProcessor

' set the processor imput to your xml doc
xslProc.input = xmlDoc

' set the output, probably to the Response object
Xslproc.output = Response

' add the parameters
xslProc.addParameter "uid", Request.QueryString("uid")

' run the transformation
xslProc.transform

On your stylesheet you'll to have a global 'uid' parameter

Hope this helps




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.