cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò <ilgro...@apache.org>
Subject Re: [C3] Passing parameters from sitemap to generator
Date Fri, 01 Jul 2011 09:38:11 GMT
On 01/07/2011 11:34, Jos Snellings wrote:
> Hi,
>
> Maybe the Generator is sufficient?
> To pass parameters from the sitemap is not it is not a big deal.
> What sort of parameters do you want? Parts of the path?
>
> controlStuff{tat}/{tit}/{tot}

This was exactly my scenario: I am writing a (kind of) JCR generator 
that reads from a Jackrabbit repository depending on (sub) request path.

> request parameters?

This could also be the case.

> Kind regards,
> Jos
>
> On 07/01/2011 10:33 AM, Thomas Markus wrote:
>> Hi,
>>
>> JXGenerator is really useful, its a must have for me.
>>
>> Thomas
>>
>> Am 01.07.2011 10:25, schrieb Francesco Chicchiriccò:
>>> Hi all,
>>> recently I have been in the situation for which I need to 
>>> parametrize an XML file of my application; I thought there was a 
>>> simpler way but I ended up by using an additional XSLT 
>>> transformation step (since the XSLTTransformer can accep parameters 
>>> from the pipeline).
>>>
>>> With C2.1 I used to put in place the JXGenerator [1] (or 
>>> JXTransformer [2] depending on the case): this saved me, in many 
>>> cases, from an additional transformation step in the pipeline.
>>>
>>> Even though it is true that everything you could do with JXGenerator 
>>> can always be done with XMLGenerator + XSLTTransformer, do you think 
>>> that such component can be a "nice to have" in C3?
>>>
>>> Cheers.
>>>
>>> [1] http://cocoon.apache.org/2.1/userdocs/jx-generator.html
>>> [2] http://cocoon.apache.org/2.1/userdocs/jx-template-transformer.html
-- 
Francesco Chicchiriccò

Apache Cocoon Committer and PMC Member
http://people.apache.org/~ilgrosso/


Mime
View raw message