You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Gabriele Domenichini <ga...@fastmail.fm> on 2003/05/18 20:17:44 UTC

Resources & cocoon protocol

Apparently resources & cocoon protocol can be used in alternative to
modularize sitemaps and avoid duplication of code inside a sitemap.
I have some doubts about the differences between them.
I theory when you call a resource the flow doesn't return to the point in
which was started as stated:

<citation source="http://wiki.cocoondev.org/Wiki.jsp?page=Resources">
However resources are not like a macro, which might describe a pipeline
fragment. The flow of processing does not return from the point at which
the resource is called. Therefore a resource must be a complete pipeline,
or must invoke another resource which is a complete pipeline. To put this
differently, a resource is called and this call must eventually end up at
a Serializer or Reader. The call may progress through several other
resources which might, for example, contain Selector or Actions that
further affect the flow of processing but must end up at a pipeline
terminating component. 
</citation>

But in the document
http://wiki.cocoondev.org/Wiki.jsp?page=CleanerSiteMapsThroughResources
the resources they are used in a way theorically incorrect because they
are called inside a pipeline that then use its results and to do this the
flow must return to the pipeline that call the resource. Am I wrong?

If I'm wrong (of course I'll be :-)) which is the best thing to use
regarding performance, cacheing, code cleaning etc. between resources and
the cocoon protocol?
Thank you

-- 
  Gabriele Domenichini
  gabridome@fastmail.fm

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