cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject [Fwd: Re: XML parser config in 2.2]
Date Tue, 24 Jul 2007 15:57:36 GMT
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:
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/ file in
your block and take advantage of Spring 
> configurator[3], precisely, of this[4] functionality.
> I hope that helps
> [1]
> [2]
> [3]
> [4]

Grzegorz Kossakowski

View raw message