summaryrefslogtreecommitdiff
path: root/root/templates/error.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'root/templates/error.xsl')
-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>