cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joose Vettenranta <jo...@iki.fi>
Subject Re: global variables from file? [SOLVED, kinda]
Date Tue, 06 Jul 2004 09:40:19 GMT
Seems like that is what I can use..

I put in cocoon.xconf like this:

<component-instance  
class="org.apache.cocoon.components.modules.input.XMLFileModule"  
logger="core.modules.xml" name="foo">
  <file src="cocoon:/internal/config.xml" />
</component-instance>

and in sitemap

<map:match pattern="internal/config.xml">
  <map:generate type="file" src="config.xml" />
  <map:serialize type="xml" />
</map:match>

and it's working well =)

Thanks,

Joose

5.7.2004 kello 19:55, Stephan Coboos kirjoitti:
> I don't know wether it is what you want, but you can use the  
> PropertiesFileModule or the XMLFileModule to access config datas  
> coming from a (local) file:
>
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/ 
> modules/input/PropertiesFileModule.html
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/ 
> modules/input/XMLFileModule.html
>
> Regards
> Stephan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *


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


Mime
View raw message