Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-3
    • Component/s: cocoon-sax
    • Labels:
      None

      Description

      Similar in principle to LogTransformer [1], instead of printing out the "pure" SAX events, it prints out the complete XML document; useful for debugging.

      [1] http://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/LogTransformer.java
      1. LogAsXMLTransformer.patch
        12 kB
        Francesco Chicchiriccò

        Issue Links

          Activity

          Hide
          Simone Tripodi added a comment -
          No hard to realize, ready in a while, thanks Francesco for the suggestion.
          Show
          Simone Tripodi added a comment - No hard to realize, ready in a while, thanks Francesco for the suggestion.
          Hide
          Francesco Chicchiriccò added a comment - - edited
          Patch implementing the LogAsXMLTransformer.

          At first I thought to use classes from org.apache.xml.serialize (Xalan); it was simpler but the whole package has been deprecated since xalan 2.9.1.
          Because of this I finally went to the alternative DOM-based serialization.
          Show
          Francesco Chicchiriccò added a comment - - edited Patch implementing the LogAsXMLTransformer. At first I thought to use classes from org.apache.xml.serialize (Xalan); it was simpler but the whole package has been deprecated since xalan 2.9.1. Because of this I finally went to the alternative DOM-based serialization.
          Hide
          Simone Tripodi added a comment -
          Thanks for the patch Francesco,
          I applied it modifying the code a little since there was an easier way to implement it using the already implemented org.apache.cocoon.sax.component.XMLSerializer, that helps us respecting the DRY principle.
          Very appreciated, thanks a lot!!!
          Show
          Simone Tripodi added a comment - Thanks for the patch Francesco, I applied it modifying the code a little since there was an easier way to implement it using the already implemented org.apache.cocoon.sax.component.XMLSerializer, that helps us respecting the DRY principle. Very appreciated, thanks a lot!!!

            People

            • Assignee:
              Simone Tripodi
              Reporter:
              Francesco Chicchiriccò
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development