11
11
<ul class =" side-nav nav nav-list" >
12
12
<li class =" nav-header" >Navigation</li >
13
13
<xsl : for-each select =" /project/file" >
14
- <xsl : if test =" markers|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme'] " >
14
+ <xsl : if test =" markers" >
15
15
<li >
16
16
<a href =" #{@path}" >
17
17
<i class =" icon-file" ></i > <xsl : value-of select =" @path" />
29
29
<li >Markers</li >
30
30
</ul >
31
31
32
- <xsl : if test =" count(/project/file/markers|//docblock/tag[@name='todo']|//docblock/tag[@name='fixme'] ) < 1" >
32
+ <xsl : if test =" count(/project/file/markers) < 1" >
33
33
<div class =" alert alert-info" >No markers have been found in this project.</div >
34
34
</xsl : if >
35
35
44
44
45
45
<div id =" marker-accordion" >
46
46
<xsl : for-each select =" /project/file" >
47
- <xsl : if test =" markers|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme'] " >
47
+ <xsl : if test =" markers" >
48
48
<div class =" package-contents" >
49
49
<a name =" {@path}" id =" {@path}" ></a >
50
50
<h3 >
51
51
<i class =" icon-file" ></i >
52
52
<xsl : value-of select =" @path" />
53
53
<small style =" float: right;padding-right: 10px;" >
54
- <xsl : value-of select =" count(markers/*|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme'] )" />
54
+ <xsl : value-of select =" count(markers/*)" />
55
55
</small >
56
56
</h3 >
57
57
<div >
61
61
<th >Line</th >
62
62
<th >Description</th >
63
63
</tr >
64
- <xsl : for-each select =" markers/*|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme'] " >
64
+ <xsl : for-each select =" markers/*" >
65
65
<xsl : sort select =" line" />
66
66
<tr >
67
- <xsl : if test =" name() = 'tag'" >
68
- <td >
69
- <xsl : value-of select =" @name" />
70
- </td >
71
- </xsl : if >
72
- <xsl : if test =" name() != 'tag'" >
73
- <td >
74
- <xsl : value-of select =" name()" />
75
- </td >
76
- </xsl : if >
67
+ <td >
68
+ <xsl : value-of select =" name()" />
69
+ </td >
77
70
<td >
78
71
<xsl : value-of select =" @line" />
79
72
</td >
80
- <xsl : if test =" name() = 'tag'" >
81
- <td >
82
- <xsl : value-of select =" @description" disable-output-escaping =" yes" />
83
- </td >
84
- </xsl : if >
85
- <xsl : if test =" name() != 'tag'" >
86
- <td >
87
- <xsl : value-of select =" ." disable-output-escaping =" yes" />
88
- </td >
89
- </xsl : if >
73
+ <td >
74
+ <xsl : value-of select =" ." disable-output-escaping =" yes" />
75
+ </td >
90
76
</tr >
91
77
</xsl : for-each >
92
78
</table >
100
86
</div >
101
87
</xsl : template >
102
88
103
- </xsl : stylesheet >
89
+ </xsl : stylesheet >
0 commit comments