cziegeler    01/10/12 01:37:06

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: cocoon_20_branch sitemap.xsl
  Log:
  Fixed component handling in subsitemaps when invoked internally
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.33 +4 -1      
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.11.2.32
  retrieving revision 1.11.2.33
  diff -u -r1.11.2.32 -r1.11.2.33
  --- sitemap.xsl       2001/10/02 08:25:47     1.11.2.32
  +++ sitemap.xsl       2001/10/12 08:37:06     1.11.2.33
  @@ -124,7 +124,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.11.2.32 2001/10/02 08:25:47 
cziegeler Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.11.2.33 2001/10/12 08:37:06 
cziegeler 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"/>";
  @@ -466,6 +466,9 @@
         public boolean process(Environment environment, StreamPipeline 
pipeline, EventPipeline eventPipeline)
         throws Exception {
           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);
         }
   
  
  
  

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