cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/language/markup/sitemap/java sitemap.xsl
Date Thu, 16 Aug 2001 02:37:21 GMT
vgritsenko    01/08/15 19:37:21

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: cocoon_20_branch sitemap.xsl
  Log:
  optimize memory allocation
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.26 +4 -3      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.25
  retrieving revision 1.11.2.26
  diff -u -r1.11.2.25 -r1.11.2.26
  --- sitemap.xsl	2001/08/11 18:29:00	1.11.2.25
  +++ sitemap.xsl	2001/08/16 02:37:21	1.11.2.26
  @@ -124,7 +124,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.11.2.25 2001/08/11 18:29:00 vgritsenko Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.11.2.26 2001/08/16 02:37:21 vgritsenko 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"/>";
  @@ -454,6 +454,7 @@
              XPath kind expressions in values of src attribute used with
              generate and transform elements */
           List listOfMaps = (List) new ArrayList();
  +        SitemapRedirector redirector = new SitemapRedirector(environment);
           <!-- process the pipelines -->
           <!-- for each pipeline element generate a try/catch block -->
           <xsl:for-each select="/map:sitemap/map:pipelines/map:pipeline">
  @@ -473,7 +474,7 @@
                 </xsl:variable>
                 // method for handling "<xsl:value-of select="@pattern"/>"
                 if(<xsl:value-of select="translate($matcher-type, '- ', '__')"/>Match<xsl:value-of
select="generate-id(.)"/>(
  -                      environment, pipeline, eventPipeline, internalRequest,listOfMaps))
  +                      redirector, environment, pipeline, eventPipeline, internalRequest,listOfMaps))
                   return true;
               </xsl:for-each>
   
  @@ -740,6 +741,7 @@
       <!-- this is the actual code produced -->
       // method for handling "<xsl:value-of select="@pattern"/>"
       private boolean <xsl:value-of select="translate($matcher-type, '- ', '__')"/>Match<xsl:value-of
select="generate-id(.)"/>(
  +                                    SitemapRedirector redirector,
                                       Environment environment, StreamPipeline pipeline,
                                       EventPipeline eventPipeline,
                                       boolean internalRequest, List listOfMaps)
  @@ -747,7 +749,6 @@
           Map map;
           Parameters param;
           Map objectModel = environment.getObjectModel();
  -        SitemapRedirector redirector = new SitemapRedirector(environment);
           String cocoon_view = environment.getView();
           String cocoon_action = environment.getAction();
   
  
  
  

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