cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@yahoo.com>
Subject RE: [c2 proposal] map:aggregate
Date Sat, 28 Jul 2001 17:10:04 GMT
> -----Original Message-----
> From: Gerhard Froehlich [mailto:g-froehlich@gmx.de]
> Sent: Saturday, July 28, 2001 12:43 PM
> To: cocoon-dev@xml.apache.org
> 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:vgritsenko@yahoo.com]
> Gesendet: Saturday, July 28, 2001 6:32 PM
> An: cocoon-dev@xml.apache.org
> 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:g-froehlich@gmx.de]
> > 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: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message