giacomo     01/06/07 14:35:13

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: cocoon_20_branch 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
  No                   revision
  
  
  No                   revision
  
  
  1.11.2.3  +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.2.2
  retrieving revision 1.11.2.3
  diff -u -u -r1.11.2.2 -r1.11.2.3
  --- sitemap.xsl       2001/06/07 16:23:38     1.11.2.2
  +++ sitemap.xsl       2001/06/07 21:35:09     1.11.2.3
  @@ -101,7 +101,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.2.2 2001/06/07 16:23:38 bloritsch Exp $
  +     * @version CVS $Id: sitemap.xsl,v 1.11.2.3 2001/06/07 21:35:09 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"/>";
  @@ -432,9 +432,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