cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdgmus <i...@rdg-software.it>
Subject ErrorGenerator
Date Sun, 28 Mar 2004 09:19:20 GMT
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

Mime
View raw message