cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <>
Subject Re: Dynamically generate RSS feed for Cocoon portal from XML files
Date Tue, 11 Mar 2003 14:06:43 GMT
On Tue, Mar 11, 2003 at 05:11:30AM -0800, wrote:
> Dear all,
> I would like to dynamically generate an RSS feed from
> currently available XML files in a folder on my
> webserver to be displayed in the Cocoon portal.
> I have a set of equally structured XML files in a
> folder and new files are added to this folder regularly.
> Now I want to generate the RSS feed dynamically when
> the respective coplet displays the RSS in the portal.
> The RSS file should reflect the title of these XML
> files (which is in the dc:title tag of each file) and
> the URI (the path + filename).
> Any ideas are greatly appreciated, hope someone has
> done similar things before - otherwise I would need to
> start from scratch.

If you're using Cocoon 2.1, the XPathDirectoryGenerator might be useful.
It lets you extract XPath-specified nodes from every file in a directory.

For example, to generate
I used:

   <map:match pattern="examples/index.xml">
     <map:generate type="xpathdirectory"
     <map:transform src="resources/stylesheets/antdirectory2document.xsl"/>
     <map:serialize type="xml"/>


> Kind regards,
> Holger

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

View raw message