bloritsch 01/09/19 08:09:28
Modified: webapp.tutorial sitemap.xmap
Added: webapp.tutorial/stylesheets/system error2document.xsl
Removed: webapp.tutorial/stylesheets/system directory2html.xsl
error2html.xsl status2html.xsl
Log:
Make error messages consistent with the site
Revision Changes Path
1.2 +2 -1 xml-cocoon2/webapp.tutorial/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp.tutorial/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 2001/09/19 14:27:59 1.1
+++ sitemap.xmap 2001/09/19 15:09:28 1.2
@@ -184,7 +184,8 @@
</map:match>
<map:handle-errors>
- <map:transform src="stylesheets/system/error2html.xsl"/>
+ <map:transform src="stylesheets/system/error2document.xsl"/>
+ <map:transform src="stylesheets/apache.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
1.1
xml-cocoon2/webapp.tutorial/stylesheets/system/error2document.xsl
Index: error2document.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:error="http://apache.org/cocoon/error/2.0">
<xsl:template match="error:notify">
<document>
<header>
<title>
<xsl:if test="@type">
<xsl:value-of select="@type"/>:
</xsl:if>
<xsl:value-of select="error:title"/>
</title>
</header>
<body>
<s1 title="Details">
<s2 title="Message">
<xsl:if test="@type">
<xsl:value-of select="@type"/>:
</xsl:if>
<xsl:value-of select="error:message"/>
</s2>
<xsl:if test="@sender">
<s2 title="From">
<p><xsl:value-of select="@sender"/></p>
</s2>
</xsl:if>
<s2 title="Source">
<p><xsl:value-of select="error:source"/></p>
</s2>
<s2 title="Description">
<p><xsl:value-of select="error:description"/></p>
</s2>
</s1>
<s1 title="Stack Traces">
<xsl:apply-templates select="error:extra"/>
</s1>
</body>
</document>
</xsl:template>
<xsl:template match="error:extra">
<note><code><xsl:value-of select="."/></code></note>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]