You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christofer Dutz <ch...@danet.de> on 2001/08/23 10:13:18 UTC
Passing a parameter to a XSL Stylesheet
Hi,
Can somebody tell me how to create a XSP-page which can pass a parameter to the XSL-file when beeing processed ?
Regards,
Christofer Dutz
RE: Passing a parameter to a XSL Stylesheet
Posted by Vadim Gritsenko <vg...@hns.com>.
1) Put your parameters inside XML generated by XSP,
or
2) In XSP, put parameters as attributes of request object,
use action in sitemap to obtain these parameters into sitemap parameters,
ans pass these parameters to XSL:
<map:genenrate type="serverpage" src="..."/>
<map:act type="get-request-attributes">
<map:transform src="">
<map:parameter name="x" value="{paramName}"/>
</map:transofrm>
</map:act>
Vadim
-----Original Message-----
From: Christofer Dutz [mailto:christofer.dutz@danet.de]
Sent: Thursday, August 23, 2001 4:13 AM
To: cocoon-users@xml.apache.org
Subject: Passing a parameter to a XSL Stylesheet
Hi,
Can somebody tell me how to create a XSP-page which can pass a parameter
to the XSL-file when beeing processed ?
Regards,
Christofer Dutz