cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: rev 54670 - cocoon/trunk/src/java/org/apache/cocoon/generation
Date Tue, 12 Oct 2004 12:55:31 GMT
Author: bdelacretaz
Date: Tue Oct 12 05:55:30 2004
New Revision: 54670

Modified:
   cocoon/trunk/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
Log:
changes ported from 2.1 branch for bugzilla 29381: JXTemplateGenerator uses IncludeXMLConsumer
to remove start/endDocument events when dumping DOM objects

Modified: cocoon/trunk/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java	(original)
+++ cocoon/trunk/src/java/org/apache/cocoon/generation/JXTemplateGenerator.java	Tue Oct 12
05:55:30 2004
@@ -2517,9 +2517,11 @@
         }
     }
 
+    /** dump a DOM document, using an IncludeXMLConsumer to filter out start/end document
events */
     private void executeDOM(final XMLConsumer consumer, MyJexlContext jexlContext, JXPathContext
jxpathContext, Node node)
     		throws SAXException {
-        DOMStreamer streamer = new DOMStreamer(consumer);
+        IncludeXMLConsumer includer = new IncludeXMLConsumer(consumer);
+        DOMStreamer streamer = new DOMStreamer(includer);
         streamer.stream(node);
    }
 

Mime
View raw message