cziegeler    2003/12/23 03:35:17

  Modified:    src/blocks/scratchpad/java/org/apache/cocoon/generation
                        JellyGenerator.java
  Log:
  Fixing sax handling
  
  Revision  Changes    Path
  1.4       +7 -0      
cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/generation/JellyGenerator.java
  
  Index: JellyGenerator.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.1/src/blocks/scratchpad/java/org/apache/cocoon/generation/JellyGenerator.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JellyGenerator.java       23 Dec 2003 10:27:04 -0000      1.3
  +++ JellyGenerator.java       23 Dec 2003 11:35:17 -0000      1.4
  @@ -116,8 +116,15 @@
               // Execute Jelly script
               XMLOutput xmlOutput = new XMLOutput(this.contentHandler, 
this.lexicalHandler);
               
  +            // TODO - get the Jelly parser and feed an input stream into the 
parser
  +            //        This allows us to use our own protocols (like cocoon:)
  +            //        Compile the script and cache the compiled version
  +            
               scriptSource = this.resolver.resolveURI(this.source);
  +            // the script does not output startDocument/endDocument events
  +            this.contentHandler.startDocument();
               this.jellyContext.runScript(scriptSource.getURI(), xmlOutput);
  +            this.contentHandler.endDocument();
               xmlOutput.flush();
               
           } catch (IOException e) {
  
  
  

Reply via email to