giacomo     01/06/08 12:55:48

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        sitemap.xsl
  Log:
  Another small patch, for sitemap. Now it reports to log file that it's going
  to "process the error page" even if no section "map:handle-errors" were specified
  in the sitemap.
  
  This patch moves warning to correct place.
  Submitted by: Vadim Gritsenko <[EMAIL PROTECTED]>
  
  Revision  Changes    Path
  1.12      +2 -2      
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
  retrieving revision 1.12
  diff -u -u -r1.11 -r1.12
  --- sitemap.xsl       2001/06/05 21:36:23     1.11
  +++ sitemap.xsl       2001/06/08 19:55:47     1.12
  @@ -100,7 +100,7 @@
        *
        * @author &lt;a href="mailto:[EMAIL PROTECTED]"&gt;Giacomo Pati&lt;/a&gt;
        * @author &lt;a href="mailto:[EMAIL PROTECTED]"&gt;Berin Loritsch&lt;/a&gt;
  -     * @version CVS $Id: sitemap.xsl,v 1.11 2001/06/05 21:36:23 dims Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.12 2001/06/08 19:55:47 giacomo 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"/>";
  @@ -427,9 +427,9 @@
               getLogger().warn("404 Resource Not Found", rse);
               throw rse;
             } catch (Exception e) {
  -            getLogger().warn("Error, try to process the error page", e);
               <xsl:choose>
                 <xsl:when test="(./map:handle-errors)">
  +                getLogger().warn("Error, try to process the error page", e);
                   try {
                     return error_process_<xsl:value-of select="$pipeline-position"/> 
(environment, objectModel, e, internalRequest);
                   } catch (Exception ex) {
  
  
  

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