summaryrefslogtreecommitdiff
path: root/root
diff options
context:
space:
mode:
authorMichael Kröll <pepl@cpan.org>2008-12-01 22:55:30 +0100
committerMichael Kröll <pepl@cpan.org>2008-12-01 22:55:30 +0100
commitcfdbde16b89b845ab1297cc25dbde08649d42758 (patch)
tree61bc937c90442b81a00895a85175b7ae9fa1360e /root
parentMerge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff)
downloadSimple-OpenID-cfdbde16b89b845ab1297cc25dbde08649d42758.tar.gz
Simple-OpenID-cfdbde16b89b845ab1297cc25dbde08649d42758.tar.bz2
Simple-OpenID-cfdbde16b89b845ab1297cc25dbde08649d42758.zip
Stub for error page; redirect to error page when openid.return_to parameter is not given
Diffstat (limited to 'root')
-rw-r--r--root/templates/error.xsl29
1 files changed, 29 insertions, 0 deletions
diff --git a/root/templates/error.xsl b/root/templates/error.xsl
new file mode 100644
index 0000000..3aa236e
--- /dev/null
+++ b/root/templates/error.xsl
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
+ xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+ <xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="yes" media-type="text/html"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="no"/>
+
+ <xsl:template match="/document">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Error</title>
+ <style type="text/css">
+ @import "default.css";
+ </style>
+ </head>
+
+ <body>
+ <p>An error occured.</p>
+ <xsl:if test="error_message != ''">
+ <p id="error_message">
+ <xsl:value-of select="error_message"/>
+ </p>
+ </xsl:if>
+ </body>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>