vgritsenko    2002/09/20 21:03:51

  Modified:    src/java/org/apache/cocoon/components/xslt
                        XSLTProcessorImpl.java
  Log:
  fix bug 12328: XSLTProcessorImpl doesn't set new URI resolver to cached templates
  
  Revision  Changes    Path
  1.25      +2 -19     
xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- XSLTProcessorImpl.java    19 Jul 2002 13:09:32 -0000      1.24
  +++ XSLTProcessorImpl.java    21 Sep 2002 04:03:51 -0000      1.25
  @@ -252,25 +252,8 @@
               }
   
               TransformerHandler handler = 
this.factory.newTransformerHandler(templates);
  -
  -            /* (VG)
  -            From 
http://java.sun.com/j2se/1.4/docs/api/javax/xml/transform/TransformerFactory.html#newTemplates(javax.xml.transform.Source)
  -            Or 
http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/TransformerFactory.html#newTemplates(javax.xml.transform.Source)
  -
  -            "Returns: Templates object capable of being used for transformation
  -            purposes, never null."
  -            if (handler == null) {
  -            if (this.getLogger().isDebugEnabled()) {
  -            getLogger().debug("Re-creating new Templates for " + id);
  -            }
  -
  -            templates = getTransformerFactory().newTemplates(new 
SAXSource(stylesheet.getInputSource()));
  -            putTemplates (templates, stylesheet, id);
  -            handler = getTransformerFactory().newTransformerHandler(templates);
  -            }
  -            */
  -
               handler.getTransformer().setErrorListener(this.errorHandler);
  +            handler.getTransformer().setURIResolver(this);
               return handler;
           } catch (ProcessingException e) {
               throw e;
  
  
  

----------------------------------------------------------------------
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