cziegeler 01/10/12 02:32:32
Modified: src/org/apache/cocoon/components/language/markup/sitemap/java
sitemap.xsl
Log:
Throw exception for internal requests instead of using the error handler
Revision Changes Path
1.42 +5 -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.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- sitemap.xsl 2001/10/12 08:47:22 1.41
+++ sitemap.xsl 2001/10/12 09:32:32 1.42
@@ -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.41 2001/10/12 08:47:22 cziegeler
Exp $
+ * @version CVS $Id: sitemap.xsl,v 1.42 2001/10/12 09:32:32 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"/>";
@@ -534,6 +534,10 @@
<xsl:choose>
<xsl:when test="(./map:handle-errors[not(@type) or
(@type='500')])">
getLogger().warn("Error, try to process the error page", e);
+ if (internalRequest) {
+ getLogger().error("Sitemap", e);
+ if (true) throw e;
+ }
try {
return error_process_<xsl:value-of
select="$pipeline-position"/>_500 (redirector, environment,
environment.getObjectModel(), e, internalRequest);
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]