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:[EMAIL PROTECTED]">Davanum Srinivas</a>
* @author <a href="mailto:[EMAIL PROTECTED]">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: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]