ovidiu      01/11/08 11:40:12

  Modified:    src/org/apache/cocoon/components/xslt XSLTProcessorImpl.java
  Log:
  Applied patch for incremental XSLT processing from Jörn Heid <[EMAIL PROTECTED]>.
  
  Revision  Changes    Path
  1.11      +10 -0     
xml-cocoon2/src/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- XSLTProcessorImpl.java    2001/10/25 19:32:59     1.10
  +++ XSLTProcessorImpl.java    2001/11/08 19:40:12     1.11
  @@ -86,6 +86,8 @@
   
     /** Is the store turned on? (default is on) */
     boolean useStore = true;
  +  /** Is incremental processing turned on? (default for Xalan: no) */
  +  boolean incrementalProcessing = false;
   
     SourceResolver resolver;
   
  @@ -109,6 +111,7 @@
     {
       Parameters params = Parameters.fromConfiguration(conf);
       useStore = params.getParameterAsBoolean("use-store", true);
  +    incrementalProcessing = params.getParameterAsBoolean("ncremental-processing", 
false);
       
       String factoryName = params.getParameter("transformer-factory", null);
       
  @@ -259,6 +262,13 @@
         }
         tfactory.setErrorListener(new TraxErrorHandler(getLogger()));
         tfactory.setURIResolver(this);
  +      // TODO: If we will support this feature with a different
  +      // transformer than Xalan we'll have to set that corresponding
  +      // feature
  +      if 
(tfactory.getClass().getName().equals("org.apache.xalan.processor.TransformerFactoryImpl"))
 {
  +         tfactory.setAttribute("http://xml.apache.org/xalan/features/incremental";,
  +                               new Boolean (incrementalProcessing));
  +      }
       }
       return tfactory;
     }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to