Re: [2.1] cinclude using a pipeline as a generator source

Nico Verwer <[email protected]> Tue, 10 May 2016 10:35:27 +0200
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
On 7-5-2016 15:10, Christopher Schultz wrote:
> On 5/7/16 7:38 AM, warrell harries wrote:
>>> cocoon:// is understood as standard
>> Awesome. I was hoping it would be something simple like that.
You can use something like

<map:generate 
src="cocoon://{normalize-path:{request:sitemapURIPrefix}../somewhere/else}/whatever.xml"/>

The RequestModule is standard, and the NormalizePathInputModule comes 
from this project <https://github.com/nverwer/cocooncomponents>.
Doing this will make you project "relocatable" relative to the sitemap root.
This works in Cocoon 2.1, which for me is still preferable over 2.2 or 3.

It is good to see that people are still using Cocoon (2.1)!

Best regards,
Nico