You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by sy...@apache.org on 2002/03/26 11:57:02 UTC
cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap SitemapLanguage.java
sylvain 02/03/26 02:57:02
Modified: src/java/org/apache/cocoon/components/treeprocessor/sitemap
SitemapLanguage.java
Log:
Cleanup on recycle, otherwise mounting a subsitemap claims that views defined in the root sitemap don't exist.
Revision Changes Path
1.4 +10 -1 xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java
Index: SitemapLanguage.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/sitemap/SitemapLanguage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SitemapLanguage.java 22 Mar 2002 22:26:13 -0000 1.3
+++ SitemapLanguage.java 26 Mar 2002 10:57:02 -0000 1.4
@@ -82,7 +82,7 @@
* The tree builder for the sitemap language.
*
* @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
- * @version CVS $Id: SitemapLanguage.java,v 1.3 2002/03/22 22:26:13 sylvain Exp $
+ * @version CVS $Id: SitemapLanguage.java,v 1.4 2002/03/26 10:57:02 sylvain Exp $
*/
public class SitemapLanguage extends DefaultTreeBuilder {
@@ -173,6 +173,15 @@
* Pseudo-label for views <code>from-position="last"</code> (i.e. serializer).
*/
public static final String LAST_POS_LABEL = "!last!";
+
+ public void recycle() {
+ super.recycle();
+
+ // Go back to initial state
+ this.labelViews.clear();
+ this.viewsNode = null;
+ this.isBuildingView = false;
+ }
/**
* Set to <code>true</code> while building the internals of a <map:view>
----------------------------------------------------------------------
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