This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Parameters set by user
- From: "Technik" <technik at nexus-solutions dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 2 Sep 2002 21:01:24 +0200
- Subject: RE: [xsl] Parameters set by user
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Jeni,
never seen such a clear-cut, suitable-for-a-dummy-like-me explanation such
as yours...
And it makes me curious about one other aspect:
Is it possible, proceeding according to your 2nd alternative (below), to
pass more than one value for one and the same parameter?
Matthias
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Jeni Tennison
Sent: Friday, August 30, 2002 12:50 AM
To: Technik
Cc: [LIST] XSL
Subject: Re: [xsl] Parameters set by user
Hi Matthias,
...
Cocoon can be set up to pass either particular parameters or all
request parameters into the stylesheet. To do either, you need to set
up the sitemap so that parameters are passed into the particular
transformation.
For example, you could have something like:
...
<map:match pattern="search">
<map:generate src="list.xml" />
<map:transform src="list.xsl">
<map:parameter name="use-request-parameters" value="true" />
</map:transform>
<map:serialize />
</map:match>
which means that when the URL has request parameters, for example:
.../search?search=a
then the request parameters are passed in as parameters to the
stylesheet as well. So the above URL would pass in the value "a" as
the value of the parameter $search.
...
Cheers,
Jeni
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list