cziegeler    01/11/26 07:04:38

  Modified:    src/org/apache/cocoon/generation HTMLGenerator.java
  Log:
  Fixing bug 5086
  
  Revision  Changes    Path
  1.19      +8 -2      xml-cocoon2/src/org/apache/cocoon/generation/HTMLGenerator.java
  
  Index: HTMLGenerator.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/generation/HTMLGenerator.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- HTMLGenerator.java        2001/11/26 12:44:56     1.18
  +++ HTMLGenerator.java        2001/11/26 15:04:38     1.19
  @@ -42,7 +42,7 @@
   /**
    * @author <a href="mailto:[EMAIL PROTECTED]";>Davanum Srinivas</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Carsten Ziegeler</a>
  - * @version CVS $Revision: 1.18 $ $Date: 2001/11/26 12:44:56 $
  + * @version CVS $Revision: 1.19 $ $Date: 2001/11/26 15:04:38 $
    */
   public class HTMLGenerator extends ComposerGenerator implements Cacheable, 
Recyclable, Composable, Disposable {
   
  @@ -129,7 +129,13 @@
        */
       public long generateKey() {
           if (this.inputSource.getLastModified() != 0) {
  -            return HashUtil.hash(this.inputSource.getSystemId());
  +            if (this.xpath != null) {
  +                StringBuffer buffer = new 
StringBuffer(this.inputSource.getSystemId());
  +                buffer.append(':').append(this.xpath);
  +                return HashUtil.hash(buffer.toString());
  +            } else {
  +                return HashUtil.hash(this.inputSource.getSystemId());
  +            }
           }
           return 0;
       }
  
  
  

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