cocoon-dev mailing list archives

[jira] Commented: (COCOON-1928) Add the ability to pass the doctype in parameter for Serializer

Date

Fri, 13 Oct 2006 06:32:36 GMT

[ http://issues.apache.org/jira/browse/COCOON-1928?page=comments#action_12441939 ]
Jörg Heinicke commented on COCOON-1928:
---------------------------------------
> Cyriaque, have you tried declaring the serializer in your project's sitemap.xmap file?
I am not sure which one takes precedence.
> Sitemap precedence would probably be better, if possible.
I don't know how a Forrest plugin works, but in standard Cocoon sitemaps work as sub-containers
and redeclared components are only usable in this sitemap and its childs (if not redeclared
again).
So if the plugin's sitemap is actually a super-sitemap (or part of it) of the project's sitemap
and if it also contains the pipeline where this component is used, it will use the original
component, not the redeclared one.
> Probably should create a FOR Jira issue and leave this one for your original suggestion.
I don't think that this proposal will make it into Cocoon. You can ask on the developers list,
but I guess this one will get a WONTFIX (to speak in bugzilla resolvings).
> Add the ability to pass the doctype in parameter for Serializer
> ---------------------------------------------------------------
>
> Key: COCOON-1928
> URL: http://issues.apache.org/jira/browse/COCOON-1928
> Project: Cocoon
> Issue Type: New Feature
> Components: * Cocoon Core
> Affects Versions: 2.2-dev (Current SVN)
> Reporter: Cyriaque Dupoirieux
> Priority: Minor
> Attachments: AbstractTextSerializer.diff
>
>
> I need - with forrest - to get the doctype-system and doctype-public in a parameter like
following :
> <map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml"
pool-grow="2" pool-max="64" pool-min="2"
> src="org.apache.cocoon.serialization.XMLSerializer">
> <parameter name="doctype-public" value="-//W3C//DTD XHTML 1.0 Transitional//EN"
/>
> <parameter name="doctype-system" value="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
/>
> <encoding>UTF-8</encoding>
> <indent>yes</indent>
> <omit-xml-declaration>no</omit-xml-declaration>
> </map:serializer>
> here is a patch which apply to the AbstractTextSerializer.
> in case the doctype is also found in the childs, child have priority.
> Regards,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira