cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/generation HTMLGenerator.java
Date Mon, 26 Nov 2001 15:04:38 GMT
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:dims@yahoo.com">Davanum Srinivas</a>
    * @author <a href="mailto:cziegeler@apache.org">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:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message