Subject: Re: Parameters
From: "Paulo \(Shape.Tech\)" <paulo@xxxxxxxxx>
Date: Mon, 28 Oct 2002 12:58:39 -0200
|
Thanks a lot Gertjan,
i´ll try to do it now :)
but some minutes ago I tried to do with JScript and it works prety well :)
I used this code:
var reason = Request.QueryString("reason");
and the URL is: http://www.dorio.com.br/?reason=session
----- Original Message -----
From: "Gertjan Assies" <Gertjan.Assies@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, October 28, 2002 1:36 PM
Subject: RE: Parameters
>
> Paulo,
>
> From your URL I see your language of choice is ASP
> then you probable will be using MSXML
> In that case you can use the following code
> In here aXML and aXSL are both DOMDocument objects
>
> Set aXSLTempl = Server.CreateObject("MSXML2.XSLTemplate")
> Set aXSLTempl.stylesheet = aXSL
> Set aXSLProc = aXSLTempl.createProcessor
> aXSLProc.input = aXML
> aXSLProc.addParameter "name", "value"
> aXSLProc.addParameter "anothername", "anothervalue"
> aXSLProc.Transform
> sResult = aXSLProc.output
>
> in your xsl you can then say
>
> <xsl:param name="name" />
> <xsl:param name="anothername" />
>
> HTH,
> Gertjan Assies
> webdeveloper
>
>
> -----Original Message-----
> From: Paulo (Shape.Tech) [mailto:paulo@xxxxxxxxx]
> Sent: Monday, October 28, 2002 2:53 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Parameters
>
> Hi all,
> everybody knows if it´s possible I get a param value from an URL with XSLT
?
> for exemple:
>
> www.xxx.com.br/index.asp?op=abc.xsl
>
> can I get this OP value with xslt ?
>
> thanks
> Paulo Fabiano Langer
> Web DEsigner/Develper
>
> Rio de Janeiro - BRazil
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Parameters
- Ben Robb - Mon, 28 Oct 2002 10:07:56 -0500 (EST)
- <Possible follow-ups>
- Mac Rost - Mon, 28 Oct 2002 10:25:15 -0500 (EST)
- Gertjan Assies - Mon, 28 Oct 2002 10:32:57 -0500 (EST)
- Paulo \(Shape.Tech\) - Mon, 28 Oct 2002 10:54:26 -0500 (EST) <=
|
|