cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: svn commit: r155189 - in cocoon/trunk/src/blocks/template/java/org/apache/cocoon/template/jxtg: instruction/StartDefine.java script/Parser.java script/event/StartInstruction.java
Date Thu, 24 Feb 2005 16:42:50 GMT
Leszek Gawron wrote:
> Daniel Fagerstrom wrote:
> 
>> Leszek Gawron wrote:
>>
>>> I cannot find the relevant thread: do we want our instructions' 
>>> configuration to reside in sitemap or be set up in cocoon.xconf?
>>
>>
>> Neither ;) Vadim suggested somewhere that we should do it as in the 
>> treeprocessor, i.e. there is a configuration file 
>> o.a.c.components.treeprocessor.sitemap-language.xml that is included 
>> with the resource protocol in 
>> o.a.c.components.treeprocessor.DefautlTreeBuilder and 
>> o.a.c.components.treeprocessor.TreeProcessor. IIRC Stefano and I and 
>> maybe some others found that a good idea.
> 
> Tha's a good idea. Could someone tell me how do I reach that 
> configuration from generator?

See TreeProcessor.configure():

   String XCONF_URL = "resource://.../treeprocessor-builtins.xml";
   String xconfURL = config.getAttribute("config", XCONF_URL);
   Source source = this.resolver.resolveURI(xconfURL);


Vadim

Mime
View raw message