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:20 GMT
cziegeler    01/11/26 07:04:20

  Modified:    src/org/apache/cocoon/generation Tag: cocoon_20_branch
                        HTMLGenerator.java
  Log:
  Fixing bug 5086
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.2.14  +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.4.2.13
  retrieving revision 1.4.2.14
  diff -u -r1.4.2.13 -r1.4.2.14
  --- HTMLGenerator.java	2001/11/26 12:44:36	1.4.2.13
  +++ HTMLGenerator.java	2001/11/26 15:04:20	1.4.2.14
  @@ -39,7 +39,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.4.2.13 $ $Date: 2001/11/26 12:44:36 $
  + * @version CVS $Revision: 1.4.2.14 $ $Date: 2001/11/26 15:04:20 $
    */
   public class HTMLGenerator extends ComposerGenerator implements Cacheable, Recyclable {
   
  @@ -114,7 +114,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