Forrest
  1. Forrest
  2. FOR-1156

Dispatcher output serializer needs to be configurable: xhtml/html

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9
    • Labels:
      None

      Description

      The default final output from the Dispatcher is serialized as xhtml and has the xhtml document type declaration.

      For some applications, that is what is needed. However for some websites itwould be better to have html output, e.g. HTML 4.01

      So the output serializer needs to be configurable.

        Activity

        Hide
        David Crossley added a comment -
        As discussed earlier, the configuration of Cocoon components happens very early. The only way that we have found to do it is using xml entities.

        Recently we enabled the document type declaration to be configured using that technique:
        https://issues.apache.org/jira/browse/FOR-1071

        The same technique will work for configuring the serializer.
        Show
        David Crossley added a comment - As discussed earlier, the configuration of Cocoon components happens very early. The only way that we have found to do it is using xml entities. Recently we enabled the document type declaration to be configured using that technique: https://issues.apache.org/jira/browse/FOR-1071 The same technique will work for configuring the serializer.
        Hide
        David Crossley added a comment -
        Committed a solution in r734387.

        Docs are in the whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher plugin at "how/configure-serializer.html".

        Basically: Add the following line to PROJECT_HOME/src/documentation/resources/schema/symbols-project-v10.ent
        ...
        <!ENTITY dispatcher-output-serializer "html">
        ...
        and re-start Forrest.
        Show
        David Crossley added a comment - Committed a solution in r734387. Docs are in the whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher plugin at "how/configure-serializer.html". Basically: Add the following line to PROJECT_HOME/src/documentation/resources/schema/symbols-project-v10.ent ... <!ENTITY dispatcher-output-serializer "html"> ... and re-start Forrest.

          People

          • Assignee:
            Unassigned
            Reporter:
            David Crossley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development