You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Sylvain Wallez <sy...@apache.org> on 2004/10/01 13:57:08 UTC

Re: Sitemap Reloading & Flow: Crashes

Carsten Ziegeler wrote:

>Vadim Gritsenko wrote:
>  
>
>>Carsten Ziegeler wrote:
>>
>>    
>>
>>>Starting with 2.2 you could use the getSitemapPath() method of the 
>>>Request object (you can get the request object using the 
>>>ContextHelper).
>>>      
>>>
>>Does it return sitemap file name? ... Nope. I guess you've 
>>not noticed on the bottom of the email I mentioned:
>>
>>    
>>
>Yepp, you're right, I didn't see that...sorry! (I'm really growing old)
>
>Now, what about passing the complete sitemap uri to the Interpreter?
>The interpreter is looked up somewhere in the tree processor (FlowNode?)
>and the tree processor knows the complete uri, so we could pass it
>there to the interpreter.
>  
>

That could be a solution, which only requires to add a public 
setInterpreterID(String id). For the record, the change was required 
because of scope clashes between sitemaps existing in the same directory [1]

Sylvain

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=108906222022009&w=2

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }