> -----Original Message-----
> From: Gerhard Froehlich [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, July 28, 2001 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: AW: [c2 proposal] map:aggregate
>
>
> Hi,
> maybe this is a special problem. But I wanted to transform
> the xdocs in one pdf document. And when I use the normal
I also thought about generating PDF out of Cocoon xdocs. That would be cool!
> aggregation I have to aggregate them handish, or?
> <map:match pattern="documents_pdf/documentation.pdf">
> <map:aggregate element="page" >
> <map:part src="docs/xdoc/3rdparty.xml"/>
> <map:part src="docs/xdoc/caching.xml"/>
> ...
> </map:aggregate>
> </map:match>
I see. But there is one problem - aggregator is used to aggregate not only files,
but cocoon: protocol, http: protocol, file: protocol... So - AFAIU - it's really not
in concern
of aggregator to construct somehow list of aggregated resources (files in your case).
> I also started to write my own Generator for this problem,
> but this is quite a hack.
>
> What do you mean with "custom file generator".
I meant your own Generator which you started to write :)
But - hopefully - we have other solution: X/Cinclude mechanism
which is perfectly suitable in this case:
<map:match pattern="documents_pdf/documentation.pdf">
<map:generate type="directory" src="docs/xdocs"/>
<map:transform src="filter-xml-files.xsl"/>
<map:transform src="xml-file-to-xinclude.xsl"/>
<map:transform type="xinclude"/>
<!-- here you have all xdocs in one stream -->
....
</map:match>
This should solve your problem.
Good luck with PDF!
Vadim
>
> Cheers
> Gerhard
>
> -----Ursprüngliche Nachricht-----
> Von: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Gesendet: Saturday, July 28, 2001 6:32 PM
> An: [EMAIL PROTECTED]
> Betreff: RE: [c2 proposal] map:aggregate
>
>
> Gerhard,
>
> Where this could be helpful?
>
> PS: Might be you need not aggregator but custom file generator.
>
> Vadim
>
> > -----Original Message-----
> > From: Gerhard Froehlich [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, July 28, 2001 12:20 PM
> > To: cocoon
> > Subject: [c2 proposal] map:aggregate
> >
> >
> > Hi,
> > Following proposal:
> > The map:aggregate functionality is very usefull I think. But it's very
> > laborious when you have many xml documents to aggregate. Take a look in
> > the xdocs, there are more then 77 documents.
> >
> > I think it would be more comfortable if you can say "take all valid xml
> > documents from this directory
> > and aggregate them". Maybe with subdirectories?
> >
> > What do you think?
> >
> > Cheers
> > Gerhard
> >
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]