You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by rdgmus <in...@rdg-software.it> on 2004/03/28 11:19:20 UTC
ErrorGenerator
I can't trap error tags; what is wrong in my code?
PIPELINE:
<map:handle-errors type="404">
<map:transform src="style/error.xsl"/>
<map:serialize/>
</map:handle-errors>
style/error.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="/">
<html>
<head>
<title>Error</title>
</head>
<body bgcolor="silver">
<center>
<h3>RDG Software - Caronte</h3>
<p>Ci scusiamo, ma non abbiamo potuto trovare la pagina richiesta.</p>
</center>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="//error:title">
<h2>Title</h2>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
--
Roberto Della Grotta