-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxhtml.debug.xsl
More file actions
66 lines (64 loc) · 1.9 KB
/
Copy pathxhtml.debug.xsl
File metadata and controls
66 lines (64 loc) · 1.9 KB
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl"
xmlns:debug="http://www.evilcode.net/Exhibition/namespaces/debug"
extension-element-prefixes="php debug">
<!-- DEBUG -->
<xsl:template match="debug:debug">
<table class="debug" id="array" cellspacing="0">
<caption>Array Debug</caption>
<xsl:for-each select="debug:array">
<tr>
<td class="label" valign="top"><xsl:value-of select="debug:name" /></td>
<td class="status">
<table class="variable">
<thead>
<tr>
<td class="variable">Variable</td>
<td class="value">Value</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="debug:variable">
<tr>
<td class="variable"><xsl:value-of select="debug:name" /></td>
<td class="value"><xsl:value-of select="debug:value" /></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</td>
</tr>
</xsl:for-each>
</table>
<xsl:if test="debug:string">
<table class="debug" id="string" cellspacing="0">
<caption>String Debug</caption>
<xsl:if test="debug:string[@type='app']">
<tr>
<td class="label" valign="top">Application</td>
<td class="status">
<table class="variable"><tbody>
<xsl:for-each select="debug:string[@type='app']">
<tr><td><xsl:value-of select="." /></td></tr>
</xsl:for-each>
</tbody></table>
</td>
</tr>
</xsl:if>
<xsl:if test="debug:string[@type='info']">
<tr>
<td class="label" valign="top">Info</td>
<td class="status">
<table class="variable"><tbody>
<xsl:for-each select="debug:string[@type='info']">
<tr><td><xsl:value-of select="." /></td></tr>
</xsl:for-each>
</tbody></table>
</td>
</tr>
</xsl:if>
</table>
</xsl:if>
</xsl:template>
</xsl:stylesheet>