Various improvements.
[xhtml-compiler.git] / error.xsl
blob9913a8f13b52e3e65f46d7ed48d05d6af7571fbb
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 <!-- This code is slightly problematic if we install xhtml-compiler somewhere else -->
11 <link rel="stylesheet" href="{/error/base}/xhtml-compiler/error.css" type="text/css" />
12 </head>
13 <body>
14 <h1>Error: <xsl:value-of select="error/title"/></h1>
15 <xsl:if test="error/details">
16 <div class="details">
17 <xsl:copy-of select="error/details/node()" />
18 </div>
19 </xsl:if>
20 <xsl:if test="error/debug">
21 <div class="debug">
22 <div class="title">
23 <h2>Debug</h2>
24 </div>
25 <div class="content">
26 <p>Base directory is: <strong><xsl:value-of select="error/debug/base-dir"/></strong>.</p>
27 <p>
28 Exception thrown from <strong><xsl:value-of select="error/debug/file"/></strong>
29 on line <strong><xsl:value-of select="error/debug/line"/></strong>.
30 </p>
31 </div>
32 </div>
33 </xsl:if>
34 </body>
35 </html>