cziegeler 2003/03/05 03:17:58
Modified: src/java/org/apache/cocoon/transformation CIncludeTransformer.java Log: Fixing cinclude Revision Changes Path 1.28 +11 -2 xml-cocoon2/src/java/org/apache/cocoon/transformation/CIncludeTransformer.java Index: CIncludeTransformer.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/CIncludeTransformer.java,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- CIncludeTransformer.java 3 Mar 2003 18:08:53 -0000 1.27 +++ CIncludeTransformer.java 5 Mar 2003 11:17:58 -0000 1.28 @@ -193,7 +193,7 @@ protected boolean compiling; - protected IncludeXMLConsumer filter = new IncludeXMLConsumer(this); + protected IncludeXMLConsumer filter; protected XMLSerializer recorder; @@ -271,6 +271,7 @@ this.getLogger().debug("Finishing CachingCIncludeTransformer, time: " + (System.currentTimeMillis() - this.startTime)); this.startTime = 0; } + this.filter = null; } public void startTransformingElement(String uri, String name, String raw, Attributes attr) @@ -621,6 +622,14 @@ return text; } + /** + * @see org.xml.sax.ContentHandler#startDocument() + */ + public void startDocument() throws SAXException { + this.filter = new IncludeXMLConsumer(this.xmlConsumer); + super.startDocument(); + } + /** * @see org.xml.sax.ContentHandler#endDocument() */