You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Grzegorz Kossakowski <gk...@apache.org> on 2007/07/24 17:57:36 UTC

[Fwd: Re: XML parser config in 2.2]

I'm forwarding this message to dev so people more familiar with Spring Configurator can comment on it.

Does Kazó is right with his comments and we need to adjust documentation or not?

Respond to user list, thanks.

-------- Wiadomość oryginalna --------

Thank you, this ([2]) is indeed the config file I was looking for! And with the help of [4] I successfully set the property I wanted.

Two things I'd like to mention:

1) the cocoon/properties subdirectory you mentioned doesn't seem to work (and it's not listed on [4], so I guess no problem here), I put my 
properties file under cocoon/spring.

2) the format given at the bottom of [4] resulted in an exception (org.springframework.beans.factory.BeanInitializationException: Invalid 
key 'org.apache.cocoon.core.xml.SAXParser#nsPrefixes': expected 'beanName/property'); the suggested "my.special.beanName/property=somevalue" 
syntax does indeed work - maybe [4] needs to be updated?


Grzegorz Kossakowski wrote:

> Kazó Csaba pisze:
> > Hi,
> > 
> > Is there an easy way to configure the xml parser in Cocoon 2.2? 2.1.X has a handy <xml-parser> block in cocoon.xconf, but I couldn't find
> > anything similar in the latest version.
> 
> XML parsing functionality has been moved to a separate module[1] and Springified at the same time. I guess you are looking for this[2] bean 
> configuration file.
> 
> Now you may wonder how to change this configuration. You could change values in cocoon-xml-impl.xml file and rebuild that module. Rebuild 
> for configuration change? No, not in Cocoon 2.2, any more.
> 
> You should just create META-INF/cocoon/properties/xml-configuration.properties file in your block and take advantage of Spring 
> configurator[3], precisely, of this[4] functionality.
> 
> I hope that helps
> 
> [1] http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-xml/
> [2] http://svn.apache.org/repos/asf/cocoon/trunk/core/cocoon-xml/cocoon-xml-impl/src/main/resources/META-INF/cocoon/spring/cocoon-xml-impl.xml
> [3] http://cocoon.zones.apache.org/daisy/cdocs-spring-configurator/g1/1304.html
> [4] http://cocoon.zones.apache.org/daisy/cdocs-spring-configurator/g1/1312.html

-- 
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/