forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport_deprecated.xsl
More file actions
60 lines (54 loc) · 2.57 KB
/
report_deprecated.xsl
File metadata and controls
60 lines (54 loc) · 2.57 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
<?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 name="content">
<div id="content">
<h1>Deprecated elements</h1>
<xsl:if test="count(//docblock/tag[@name='deprecated']) < 1">
<div class="success_notification">No deprecated elements have been
found in this project.
</div>
</xsl:if>
<div id="marker-accordion">
<xsl:for-each select="/project/file">
<xsl:if test=".//docblock/tag[@name='deprecated']">
<h3>
<a href="#">
<xsl:value-of select="@path"/>
<small><xsl:value-of select="count(.//docblock/tag[@name='deprecated'])"/></small>
</a>
</h3>
<div>
<table>
<tr><th>Type</th><th>Line</th><th>Description</th></tr>
<xsl:for-each select=".//docblock/tag[@name='deprecated']">
<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>