cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From koen_pellegr...@inventivedesigners.com
Subject RE: Multiple transformer-passes when using command-line Cocoon
Date Fri, 24 May 2002 12:17:49 GMT




Carsten is right. In Main.java the flow is organised as follows:

1. getContentType
2. getLinks (which uses this content-type as a parameter)
3. getFile (which uses the links as a parameter)

which makes three passes in total.

I'm not very familiar with the internals of this part of Cocoon, but maybe
it is possible to
1. combine the two environments into one and get all the information at
once
2. removing the content-type dependency from the links-environment

K.

Stephan Michels wrote:
>
> On Fri, 24 May 2002, Carsten Ziegeler wrote:
>
> > The commandline interface is currently very inefficient. Each document
> > is even without caching, precompilation etc. at least build twice.
> > The first time to get the content and the second time to get the
> > mime-type of the document!
>
> Mime type? Do you not mean for links-view?
>
No, mime type is correct!

For whatever reason the command line interface builds the document again
to get the mime type! I don't know why, but it's the way it is now.

If the crawling mechanism is used, then the document is processed three
times, the third time for the links-view.

Carsten

Carsten Ziegeler     Chief Architect     Open Source Group, S&N AG
------------------------------------------------------------------
             Cocoon Consulting, Training and Projects
------------------------------------------------------------------
mailto:cziegeler@s-und-n.de                  http://www.s-und-n.de
                  http://ziegeler.bei.t-online.de


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org






---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message