cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <>
Subject RE: xinclude - cinclude - map:aggregate ??
Date Wed, 06 Aug 2003 12:50:32 GMT
Ooowwwwkay, looking at the wiki this does not seem possible (unless it's an
undocumented feature). The src attribute of map:part does not seem to give
access to the requestgenerator in some way or another

I'll rephrase my problem then, maybe there is something more fundamental
wrong with my logic.

1)I have an xml file
2)This xml file has placeholders that need to arbitrary replaced with
request parameters. Eg invoking url myfile.xml?placeholder1=myvaluehere
outputs the xml document with every occurrence of placeholder1 replaced with
3)unlimited amount of placeholders can be defined, this results in an
arbitrary amount of requestparameters, hence I really need to be able query
the requestobject and loop over them.

Hope this clarifies my problem a bit. Should I approach this differently?


-----Original Message-----
From: Jorg Heymans [] 
Sent: Mittwoch, 6. August 2003 14:12
To: ''
Subject: xinclude - cinclude - map:aggregate ??

Hi list,
I want to iterate over the requestparameter variables in my stylesheet.
Following won't work
    <map:match pattern="*.smil">
            <map:generate src="{1}.smil" />
            <map:transform src="stylesheets/replace.xsl" >
                        <map:parameter name="use-request-parameters"
            <map:serialize type="smil"/>
Is the map:aggregate or xinclude functionality the thing I'm looking for?
How would I reference the request object as a source then?
<map:aggregate element="smil">
     <map:part src="resource://="{1}.smil" />
     <map:part src="cocoon://request" />
this didn't bring what I was looking for..
Normally I would do map:generate type="request" and then transform from
there on, but I need to keep the Smil file as the starting point here.
Any thoughts?

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message