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/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to