Leszek,
I presume this issue can't be solved like you suggested.
Including a stylesheets (which is what Zach wants) is just a mean for separating
source code into different files, but the
transformation is happening at the same time.
What you suggested is a serial bunch of transformations, which is quite different.
Best regards,
---------------------------------------------
Luca Morandini
GIS Consultant
[EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------
> -----Original Message-----
> From: Leszek Gawron [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 9:16 AM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie: aggregation question
>
>
> On Mon, Jul 22, 2002 at 06:20:02PM +0000, zach rappaport wrote:
> > Hello -
> >
> > I am using Cocoon version: 2.0.2 and Tomcat version: 4.0.4, and am very
> > very new to Cocoon.
> >
> > I have a currently working xml -> xsl stylesheet -> html module developed
> > to publish various reports. I would like to move
> > my existing setup over to Cocoon. In my current setup, the xml data is
> > passed to 1 xsl stylesheet and transformed to hmtl output. This 1 xsl
> > stylesheet (the main xsl stylesheet) calls a few other xsl stylesheets
> > within (via: <xsl:call-template />). How do I mimic this behavior in
> > Cocoon? Am I to use aggregation? If so, what are my <map: parts />?
> >
> > Once again, the current setup is like this:
> >
> > xml -> main xsl stylesheet -> html
> >
> > main xsl stylesheet (main.xsl) calls (header.xsl, body.xsl, footer.xsl).
> >
> > Can I aggregate the html output proffered by the various xsl stylesheets by
> > <map:aggregate> and <map: part>?
> You do not need aggregation for this
> the only thing you do is:
>
> <map:match pattern="page.html>
> <map:generate src="yourxml.xml"/>
> <map:transform src="header.xsl"/>
> <map:transform src="body.xsl"/>
> <map:transform src="footer.xsl"/>
> <map:transform src="main.xsl"/>
> <map:serialize/>
> </map:match>
>
> you do not have to reference other stylesheets in main.xsl
> ouzo
> --
> __
> | / \ | Leszek Gawron // \\
> \_\\ //_/ [EMAIL PROTECTED] _\\()//_
> .'/()\'. Phone: +48(600)341118 / // \\ \
> \\ // recursive: adj; see recursive | \__/ |
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>