You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Suhayl Masud <Su...@rosettanet.org> on 2000/08/16 16:44:26 UTC

Seperating transformation stylesheets from formatting stylesheets

Greetings
=======
I have recently started looking at Cocoon for a proof of concept project. I am very keen on using it in production, of course I will let you all know as soon as this happens.

My question is regarding the transformation and formatting steps in the cocoon process. Looking at the examples that accompany the cocoon distribution, I noticed that the .xsl style sheets contained both the transforming and formatting instructions in a single style sheet. In my project, I think it will be beneficial to obtain the intermediate XML document (transformed from the original doc to a more presentation oriented doc), and then applying different formatting style sheets to this intermediate document. In my understanding using xslt style sheets to perform the transformation and XSL to do the formatting is how things are done. 

Having said that, I would welcome any thoughts on if the above sounds reasonable, and if it does, how can I separate the transformation and the formatting from the single style sheet (as provided in the cocoon examples) to distinctly separate style sheets and processes?

--cheers

Suhayl Masud
Technical Architect
RosettaNet

Re: Seperating transformation stylesheets from formatting stylesheets

Posted by Stefano Mazzocchi <st...@apache.org>.
Suhayl Masud wrote:
> 
> Stefano,
> 
> Thanks for the response. So can I assume from your answer that this
> capability does not exist in Cocoon 1?

Correct.

Please read the "cocoon2" whitepaper in the Cocoon1 distribution or web
site for more info on this.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Re: Seperating transformation stylesheets from formatting stylesheets

Posted by Suhayl Masud <Su...@rosettanet.org>.
Stefano,

Thanks for the response. So can I assume from your answer that this
capability does not exist in Cocoon 1?

--cheers

Suhayl
----- Original Message -----
From: Stefano Mazzocchi <st...@apache.org>
To: <co...@xml.apache.org>
Sent: Wednesday, August 16, 2000 11:42 AM
Subject: Re: Seperating transformation stylesheets from formatting
stylesheets


> > Suhayl Masud wrote:
> >
> > Greetings
> > =======
> > I have recently started looking at Cocoon for a proof of concept
> > project. I am very keen on using it in production, of course I will
> > let you all know as soon as this happens.
> >
> > My question is regarding the transformation and formatting steps in
> > the cocoon process. Looking at the examples that accompany the cocoon
> > distribution, I noticed that the .xsl style sheets contained both the
> > transforming and formatting instructions in a single style sheet. In
> > my project, I think it will be beneficial to obtain the intermediate
> > XML document (transformed from the original doc to a more presentation
> > oriented doc), and then applying different formatting style sheets to
> > this intermediate document. In my understanding using xslt style
> > sheets to perform the transformation and XSL to do the formatting is
> > how things are done.
> >
> > Having said that, I would welcome any thoughts on if the above sounds
> > reasonable, and if it does, how can I separate the transformation and
> > the formatting from the single style sheet (as provided in the cocoon
> > examples) to distinctly separate style sheets and processes?
>
> This is already planned in Cocoon2.
>
> --
> Stefano Mazzocchi      One must still have chaos in oneself to be
>                           able to give birth to a dancing star.
> <st...@apache.org>                             Friedrich Nietzsche
> --------------------------------------------------------------------
>  Missed us in Orlando? Make it up with ApacheCON Europe in London!
> ------------------------- http://ApacheCon.Com ---------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: Seperating transformation stylesheets from formatting stylesheets

Posted by Stefano Mazzocchi <st...@apache.org>.
> Suhayl Masud wrote:
> 
> Greetings
> =======
> I have recently started looking at Cocoon for a proof of concept
> project. I am very keen on using it in production, of course I will
> let you all know as soon as this happens.
> 
> My question is regarding the transformation and formatting steps in
> the cocoon process. Looking at the examples that accompany the cocoon
> distribution, I noticed that the .xsl style sheets contained both the
> transforming and formatting instructions in a single style sheet. In
> my project, I think it will be beneficial to obtain the intermediate
> XML document (transformed from the original doc to a more presentation
> oriented doc), and then applying different formatting style sheets to
> this intermediate document. In my understanding using xslt style
> sheets to perform the transformation and XSL to do the formatting is
> how things are done.
> 
> Having said that, I would welcome any thoughts on if the above sounds
> reasonable, and if it does, how can I separate the transformation and
> the formatting from the single style sheet (as provided in the cocoon
> examples) to distinctly separate style sheets and processes?

This is already planned in Cocoon2.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------