forked from phpDocumentor/template.old_ocean
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparse_markers.xsl
67 lines (60 loc) · 2.68 KB
/
parse_markers.xsl
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="html" />
<xsl:include href="chrome.xsl" />
<xsl:template match="/project">
<script type="text/javascript">
$(document).ready(function() {
$("#marker-accordion").accordion({
collapsible: true,
autoHeight: false
});
});
</script>
<div id="content">
<h1>Compilation Errors</h1>
<xsl:if test="count(/project/file/parse_markers) < 1">
<div class="success_notification">No errors have been found in this project.</div>
</xsl:if>
<div id="marker-accordion">
<xsl:for-each select="/project/file">
<xsl:if test="parse_markers">
<h3>
<a href="#">
<xsl:value-of select="@path"/>
<small><xsl:value-of select="count(parse_markers/*)"/></small>
</a>
</h3>
<div>
<table>
<tr><th>Type</th><th>Line</th><th>Description</th></tr>
<xsl:for-each select="parse_markers/*">
<xsl:sort select="line"/>
<tr>
<xsl:if test="name() = 'tag'">
<td><xsl:value-of select="@name"/></td>
</xsl:if>
<xsl:if test="name() != 'tag'">
<td><xsl:value-of select="name()"/></td>
</xsl:if>
<td><xsl:value-of select="@line"/></td>
<xsl:if test="name() = 'tag'">
<td>
<xsl:value-of select="@description" disable-output-escaping="yes"/>
</td>
</xsl:if>
<xsl:if test="name() != 'tag'">
<td>
<xsl:value-of select="." disable-output-escaping="yes"/>
</td>
</xsl:if>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
</xsl:for-each>
</div>
</div>
</xsl:template>
</xsl:stylesheet>