I'm a little confused about the best way to change or override default
settings for properties in Cocoon 2.2.
Out of the box the 'html' serializer is set to produce Transitional 4.01
HTML. So if I put the following in sitemap.xmap:
...
<map:serialize type="html"/>
...
then that's what I get.
Now if I try overriding the defaults by explicitly adding extra
parameters to the sitemap as follows:
...
<map:serialize type="html">
<doctype-public>-//W3C//DTD HTML 4.01//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/strict.dtd</doctype-system>
</map:serialize>
...
I get no change in the output. Is this because the spring beans which
define the default settings have a higher priority than the sitemap?
I've looked at the Block directory structure documentation [1] and get
the feeling that that page is trying to tell me something about the
order of priority that a property has depending on which directory it is
defined in... but am I right? and what is the order?
If I explicitly define my own spring bean and place it in
[block]/src/main/resources/META-INF/cocoon/spring/something.xml and
refer to this bean from the sitemap then all is well and the properties
get set.
It seems to me that the priorities are a little askew. I would have
thought the local sitemap settings should have more sway than the Cocoon
defaults stored as beans in another block somewhere?
Regards,
David Legg
[1] http://cocoon.apache.org/2.2/core-modules/core/2.2/1263_1_1.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]