cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/transformation ReadDOMSessionTransformer.java
Date Fri, 10 Aug 2001 11:59:04 GMT
dims        01/08/10 04:59:04

  Modified:    src/org/apache/cocoon/transformation
                        ReadDOMSessionTransformer.java
  Log:
  Patch from "Greg Weinger" <gweinger@itmedicine.net> for "ReadDOMSessionTransformer
is inserting an XML prolog in the middle of an XML document"
  
  Revision  Changes    Path
  1.2       +4 -2      xml-cocoon2/src/org/apache/cocoon/transformation/ReadDOMSessionTransformer.java
  
  Index: ReadDOMSessionTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/transformation/ReadDOMSessionTransformer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ReadDOMSessionTransformer.java	2001/06/21 11:07:56	1.1
  +++ ReadDOMSessionTransformer.java	2001/08/10 11:59:04	1.2
  @@ -9,6 +9,7 @@
   import org.apache.cocoon.ProcessingException;
   import org.apache.cocoon.transformation.AbstractTransformer;
   import org.apache.cocoon.xml.dom.DOMStreamer;
  +import org.apache.cocoon.xml.EmbeddedXMLPipe;
   import org.apache.avalon.framework.parameters.Parameters;
   import org.apache.avalon.excalibur.pool.Poolable;
   import org.w3c.dom.Node;
  @@ -34,7 +35,7 @@
    *  the trigger-element
    *
    * @author <a href="mailto:sven.beauprez@the-ecorp.com">Sven Beauprez</a>
  - * @version CVS $Revision: 1.1 $ $Date: 2001/06/21 11:07:56 $ $Author: dims $
  + * @version CVS $Revision: 1.2 $ $Date: 2001/08/10 11:59:04 $ $Author: dims $
    */
   
   public class ReadDOMSessionTransformer extends AbstractTransformer implements Poolable
{
  @@ -119,7 +120,8 @@
         }
         if (node!=null)  {
           getLogger().debug("ReadSessionTransformer: start streaming");
  -        streamer = new DOMStreamer(super.contentHandler,super.lexicalHandler);
  +        EmbeddedXMLPipe pipe = new EmbeddedXMLPipe(super.contentHandler);
  +        streamer = new DOMStreamer(pipe,super.lexicalHandler);
           streamer.stream(node);
         }else  {
           getLogger().error("ReadSessionTransformer: no Document in session");
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message