From: "Horsfield, Peter A." <[EMAIL PROTECTED]>

The general technique with Cocoon is to use a matcher to pick up on the URI,
and to use wildcards in the matcher to
pick up on a range of URIs.


You can use the {0} sitemap parameter to access the entire
URI, and use {1} {2} etc to access the wildcard portions.

Are you sure you need/want to hand over this matching to
an XSLT stylesheet?

Oops, I actually want to do the following...


If one requests "http://www.mysite.com/requestUri?someRequestParam=1&someOtherParam=3";, then
I think I really want this string: "requestUri?someRequestParam=1&someOtherParam=3"


The XSL stylesheet is meant to take the requested URI along with all its request params, and fill this in for the "src" attribute of a <cinclude:include> transformer tag. So the result of the transform would be something like:

<cinclude:include src="cocoon:/requestUri?someRequestParam=1&someOtherParam=3"/>

Is this workable?

[I still want just the request URI ("requestUri") by itself to pass to the stylesheet for another reason, but it seems like I can get that from an input module and passing to the "xslt" transformer as a sitemap param.]


Regards,


Peter

P.S. I can't test the hyphen problem right now unfortunately.

The Input module RequestURI is new to me also, however
I have always used the
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/in
put/RequestParameterModule.html

module, which allows access to the request parameters specifically.

-----Original Message-----
From: Sonny Sukumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 4:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Pass sitemap params to "xslt" transformer?



>From: Tony Collen <[EMAIL PROTECTED]>
>
>Sonny Sukumar wrote:
>
>&snip;
>
>>Hmm, did you mean {request:requestURI} ? I did a quick Google search and
>>that's all I found. I know some of these input modules were renamed
>>within the past few months.
>
>Well, I was specifically looking at this:
>
>http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/i
nput/RequestURIModule.html
>


Interesting....it's not defined in my cocoon.xconf file, and I just upgraded

to Cocoon 2.1.2 a couple of days ago when it came out.  I know I excluded
unstable blocks, etc....is it considered unstable?

>
>Tony
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________
Help protect your PC.  Get a FREE computer virus scan online from McAfee.
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________
Add MSN 8 Internet Software to your existing Internet access and enjoy patented spam protection and more. Sign up now! http://join.msn.com/?page=dept/byoa



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to