Update error mailing code to use SwiftMailer.
[xhtml-compiler.git] / error.xsl
blob40ddc0a7787dcbe72cc52b40673eb9dbbded7f42
1 <?xml-stylesheet type="text/xml" href="#style1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xsl:version="1.0"
7 xml:lang="en">
8 <head>
9 <title>Error: <xsl:value-of select="error/title"/></title>
10 <link rel="stylesheet" href="{/error/base}/xhtml-compiler/error.css" type="text/css" />
11 </head>
12 <body>
13 <h1>Error: <xsl:value-of select="error/title"/></h1>
14 <xsl:if test="error/details">
15 <div class="details">
16 <xsl:copy-of select="error/details/node()" />
17 </div>
18 </xsl:if>
19 <xsl:if test="error/debug">
20 <div class="debug">
21 <div class="title">
22 <h2>Debug</h2>
23 </div>
24 <div class="content">
25 <p>Base directory is: <strong><xsl:value-of select="error/debug/base-dir"/></strong>.</p>
26 <p>
27 Exception thrown from <strong><xsl:value-of select="error/debug/file"/></strong>
28 on line <strong><xsl:value-of select="error/debug/line"/></strong>.
29 </p>
30 </div>
31 </div>
32 </xsl:if>
33 </body>
34 </html>