cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janet Yvan <>
Subject RE: Directory includes
Date Tue, 28 Jun 2005 08:10:30 GMT
I have a directory which contains many XML files which contain each one
element of the newsboard I want to display. So I need to do something like 
<map:generate type="file" src="/my_directory/*.xml" element="my_element"/>

One told me this would'nt work neither would <map:generate type="directory"
src="/my_directory/"/> which would only returns a file listing. What I need
is the whole content of the files, not only some pieces of information, just
as if I did something like what follows but without specifying any of the
filenames which may evolve from time to time, depending on submissions...
<map:aggregate element="my_element">
 <map:part src="/my_directory/file1.xml"/>
 <map:part src="/my_directory/file2.xml"/>
 <map:part src="/my_directory/fileN.xml"/>

> You say:
> "I don't think <map:generate type="directory" .../> would be of any use"
> but you have not given any details as to why you think this;
> a sample of what you are trying to achieve might help others
> make some suggestions... why write new code when existing
> code would work for you?

>>> 2005/06/28 09:28:54 AM >>>
>> In my deepest fears, I found some kind of a solution: should I have to
>> write some DirectoryAggregateGenerator class in java and include it 
>> into my cocoon libraries to use it or may I do something directly in XML 
>> within the sitemap files ?

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

View raw message