vgritsenko    2003/09/30 14:29:07

  Modified:    .        changes.xml
               src/java/org/apache/cocoon/components/xslt
                        XSLTProcessorImpl.java
  Log:
  Fix bug 20904: call setSystemId on templatesHandler
  
  Revision  Changes    Path
  1.38      +5 -2      cocoon-2.0/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.0/changes.xml,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- changes.xml       4 Sep 2003 02:18:03 -0000       1.37
  +++ changes.xml       30 Sep 2003 21:29:07 -0000      1.38
  @@ -22,7 +22,7 @@
     <person name="Pierpaolo Fumagalli" email="[EMAIL PROTECTED]" id="PF"/>
     <person name="Vadim Gritsenko" email="[EMAIL PROTECTED]" id="VG"/>
     <person name="Christian Haul" email="[EMAIL PROTECTED]" id="CH"/>
  -  <person name="Jörg Heinicke" email="[EMAIL PROTECTED]" id="JH"/>
  +  <person name="J&#246;rg Heinicke" email="[EMAIL PROTECTED]" id="JH"/>
     <person name="Bernhard Huber" email="[EMAIL PROTECTED]" id="BH"/>
     <person name="Ivelin Atanasoff Ivanov" email="[EMAIL PROTECTED]" id="IAI"/>
     <person name="Berin Loritsch" email="[EMAIL PROTECTED]" id="BL"/>
  @@ -43,6 +43,9 @@
    </devs>
   
    <release version="@version@" date="@date@">
  +  <action dev="VG" type="fix" fixes-bug="20904">
  +    Set system ID on templates handler object in XSLT processor 
implementation.
  +  </action>
     <action dev="VG" type="update">
       Updated Jakarta Regexp library to the version 1.3
     </action>
  
  
  
  1.2       +7 -1      
cocoon-2.0/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java
  
  Index: XSLTProcessorImpl.java
  ===================================================================
  RCS file: 
/home/cvs/cocoon-2.0/src/java/org/apache/cocoon/components/xslt/XSLTProcessorImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSLTProcessorImpl.java    9 Mar 2003 00:02:52 -0000       1.1
  +++ XSLTProcessorImpl.java    30 Sep 2003 21:29:07 -0000      1.2
  @@ -250,10 +250,16 @@
                   if (getLogger().isDebugEnabled()) {
                       getLogger().debug("Creating new Templates for " + id);
                   }
  +
                   // Create a Templates ContentHandler to handle parsing of the
                   // stylesheet.
                   TemplatesHandler templatesHandler
                       = getTransformerFactory().newTemplatesHandler();
  +
  +                // Set the system ID for the template handler since some
  +                // TrAX implementations (XSLTC) rely on this in order to 
obtain
  +                // a meaningful identifier for the Templates instances.
  +                templatesHandler.setSystemId(id);
   
                   if (filter != null) {
                       filter.setContentHandler(templatesHandler);
  
  
  

Reply via email to