cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Treeprocessor and source resolving
Date Tue, 12 Mar 2002 15:51:57 GMT
Carsten Ziegeler wrote:

>Hi Sylvain,
>can you give me some hints on the source resolving code of the tree
>The stylesheet approach passes the environment as the source resolver to the
>setup() method of the different sitemap components like actions (act()
>method), generators etc.
>I looked into the code and I saw the "EnvironmentSourceResolver" which seems
>to be passed instead of the environment object. This
>"EnvironmentSourceResolver" resolves itself all system IDs instead of using
>the environment. Why this duplicate code?

In fact, this code was grabbed from sitemap.Handler which implements 
SourceResolver. Don't remember why, but I thought it was used to hide 
the environment object and provide an enhanced resolution.

Looking at it more carefully, this was obviously wrong : the Handler 
acts as a SourceResolver for the asynchronous regeneration thread, but 
not at all for the sitemap processing.

This is now corrected and the useless code removed. Thanks for reporting.


Sylvain Wallez
  Anyware Technologies                  Apache Cocoon 

To unsubscribe, e-mail:
For additional commands, email:

View raw message