Cocoon
  1. Cocoon
  2. COCOON-1928

Add the ability to pass the doctype in parameter for Serializer

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: * Cocoon Core
    • Labels:
      None
    • Other Info:
      Patch available

      Description

      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,

        Activity

        Cyriaque Dupoirieux created issue -
        Cyriaque Dupoirieux made changes -
        Field Original Value New Value
        Attachment AbstractTextSerializer.diff [ 12342258 ]
        Antonio Gallardo made changes -
        Status Open [ 1 ] On Hold [ 10000 ]
        Jörg Heinicke made changes -
        Status On Hold [ 10000 ] Continued [ 10001 ]
        David Crossley made changes -
        Resolution Won't Fix [ 2 ]
        Status Continued [ 10001 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Cyriaque Dupoirieux
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development