cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl
Date Fri, 07 Dec 2001 10:12:59 GMT
sylvain     01/12/07 02:12:59

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        sitemap.xsl
  Log:
  Always compose() pipelines (not only on internal requests)
  
  Revision  Changes    Path
  1.51      +5 -4      xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
  
  Index: sitemap.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- sitemap.xsl	2001/12/06 13:57:24	1.50
  +++ sitemap.xsl	2001/12/07 10:12:59	1.51
  @@ -126,7 +126,7 @@
        *
        * @author <a href="mailto:giacomo@apache.org">Giacomo Pati</a>
        * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  -     * @version CVS $Id: sitemap.xsl,v 1.50 2001/12/06 13:57:24 sylvain Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.51 2001/12/07 10:12:59 sylvain Exp $
        */
       public class <xsl:value-of select="@file-name"/> extends AbstractSitemap {
         static final String LOCATION = "<xsl:value-of select="translate(@file-path, '/',
'.')"/>.<xsl:value-of select="@file-name"/>";
  @@ -615,9 +615,6 @@
         public boolean process(Environment environment, StreamPipeline pipeline, EventPipeline
eventPipeline)
         throws Exception {
           if (getLogger().isDebugEnabled()) getLogger().debug("processing internal sitemap
request");
  -        // set the correct component manager
  -        pipeline.compose(this.manager);
  -        eventPipeline.compose(this.manager);
           return process (environment, pipeline, eventPipeline, true);
         }
   
  @@ -627,6 +624,10 @@
         private final boolean process(Environment environment, StreamPipeline pipeline,
                                       EventPipeline eventPipeline, boolean internalRequest)
         throws Exception {
  +        // set the correct component manager
  +        pipeline.compose(this.manager);
  +        eventPipeline.compose(this.manager);
  +
           /* the &lt;code&gt;List&lt;/code&gt; objects to hold the replacement
values
              delivered from matchers and selectors to replace occurences of
              XPath kind expressions in values of src attribute used with
  
  
  

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