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

Reply via email to