From: "Horsfield, Peter A." <[EMAIL PROTECTED]>
Ok you're right; and Tony picked up on the right solution as far as I can see, because you need to target the URI as a whole and embed it inside a document. Thats just the way cinclude works.
Yeah, so maybe the requestURI input module is the way to go, but I can't find an example of its use. It has to be like {requestURI:???} right? Just need to fill in the "???" :-) I didn't see any example in the JavaDoc documentation for the class or in Wiki under "InputModules"
However... If you can get away with combining XML at the sitemap level you would be able to use the
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Aggregating
<map:aggregate element="the-aggregated-content"> <!-- define your map:parts here --> </map:aggregate>
construct.
Hehe I wish I could. I've used <map:aggregate> nicely in other situations, but this is a true template situation. I have an XHTML template with a center content portion that needs to be filled in, as well as a navigation menu that needs to be filled in. An additional twist is that the nav menu configuration (which shows you where you are within the site) depends on what the center content is. And the center content depends, in turn, on the request URI.
Hopefully it makes more sense now. :-)
All the best,
Peter
-----Original Message----- From: Sonny Sukumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 5:21 PM To: [EMAIL PROTECTED] Subject: RE: Pass sitemap params to "xslt" transformer?
>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/i n >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]
_________________________________________________________________
Instant message in style with MSN Messenger 6.0. Download it now FREE! http://msnmessenger-download.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]