blob: 3a89d46b3dcc61e6d98d8acfac4fcf3414b8c4f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:pgx="urn:x-pgxhtml"
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Bugs</title>
</head>
<body>
<xsl:apply-templates select="*" />
</body>
</html>
</xsl:template>
<xsl:template match="pgx:sql_error">
<h1>SQL error</h1>
<dl>
<dt>State</dt>
<dd><xsl:copy-of select="pgx:state/text()" /></dd>
<dt>Status</dt>
<dd><xsl:copy-of select="pgx:status/text()" /></dd>
<dt>Message</dt>
<dd><xsl:copy-of select="pgx:message/text()" /></dd>
<dt>Detail</dt>
<dd><xsl:copy-of select="pgx:detail/text()" /></dd>
<dt>Hint</dt>
<dd><xsl:copy-of select="pgx:hint/text()" /></dd>
</dl>
</xsl:template>
<xsl:template match="pgx:result_error">
<h1>Result error</h1>
<dl>
<dt>Message</dt>
<dd><xsl:copy-of select="pgx:message/text()" /></dd>
</dl>
</xsl:template>
<xsl:template match="pgx:query_error">
<h1>Query error</h1>
<dl>
<dt>Message</dt>
<dd><xsl:copy-of select="pgx:message/text()" /></dd>
<dt>Query</dt>
<dd><xsl:copy-of select="pgx:query/text()" /></dd>
</dl>
</xsl:template>
<xsl:template match="pgx:format_error">
<h1>Format error</h1>
<dl>
<dt>Message</dt>
<dd><xsl:copy-of select="pgx:message/text()" /></dd>
<dt>Query</dt>
<dd><xsl:copy-of select="pgx:query/text()" /></dd>
<dt>Parameters</dt>
<xsl:for-each select="pgx:param">
<dd><xsl:copy-of select="text()" /></dd>
</xsl:for-each>
</dl>
</xsl:template>
<xsl:template match="pgx:error">
<h1>Error</h1>
<dl>
<dt>Message</dt>
<dd><xsl:copy-of select="pgx:message/text()" /></dd>
</dl>
</xsl:template>
</xsl:stylesheet>
|