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

Reply via email to