Mercurial > hg > nginx-site
comparison xslt/security.xslt @ 1085:c454373427ef
Regenerated.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 28 Feb 2014 20:12:47 +0400 |
parents | f9c687ab1fd2 |
children |
comparison
equal
deleted
inserted
replaced
1084:be1d72ba7e5f | 1085:c454373427ef |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
2 <!-- | |
3 Copyright (C) Igor Sysoev | |
4 Copyright (C) Nginx, Inc. | |
5 --> | |
6 | |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | 7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
3 | 8 |
4 <xsl:template match="security"> | 9 <xsl:template match="security"> <ul> <xsl:apply-templates/> </ul> </xsl:template> |
5 <ul> | |
6 <xsl:apply-templates/> | |
7 </ul> | |
8 </xsl:template> | |
9 | 10 |
10 <xsl:template match="security/item"> | |
11 | 11 |
12 <li> | 12 <xsl:template match="security/item"> |
13 | 13 |
14 <p> | 14 <li> |
15 <p> | |
15 | 16 |
16 <xsl:value-of select="@name"/> | 17 <xsl:value-of select="@name"/><br/> |
17 <br/> | |
18 <xsl:choose> | |
19 | 18 |
20 <xsl:when test="@severity = 'major'"> | 19 <xsl:choose><xsl:when test="@severity = 'major'"> |
20 <xsl:text>Severity: </xsl:text> <b><xsl:value-of select="@severity"/></b><br/> | |
21 </xsl:when><xsl:otherwise> | |
22 <xsl:text>Severity: </xsl:text> <xsl:value-of select="@severity"/><br/> | |
23 </xsl:otherwise></xsl:choose> | |
21 | 24 |
22 <xsl:text>Severity: </xsl:text> | 25 <xsl:if test="@advisory"> |
23 <b> | 26 <a href="{@advisory}"> <xsl:text>Advisory</xsl:text> </a> |
24 <xsl:value-of select="@severity"/> | 27 <br/> |
25 </b> | 28 </xsl:if> |
26 <br/> | |
27 </xsl:when> | |
28 | 29 |
29 <xsl:otherwise> | 30 <xsl:if test="@cert"> |
31 <a> | |
32 <xsl:attribute name="href"> | |
33 <xsl:text>http://www.kb.cert.org/vuls/id/</xsl:text> <xsl:value-of select="@cert"/> | |
34 </xsl:attribute> | |
35 <xsl:text>VU#</xsl:text> <xsl:value-of select="@cert"/> | |
36 </a> | |
37 </xsl:if> | |
30 | 38 |
31 <xsl:text>Severity: </xsl:text> | 39 <xsl:if test="@cve"> |
32 <xsl:value-of select="@severity"/> | 40 <xsl:if test="@cert"> |
33 <br/> | 41 <xsl:text>  </xsl:text> |
34 </xsl:otherwise> | 42 </xsl:if> |
35 </xsl:choose> | 43 <a> |
44 <xsl:attribute name="href"> | |
45 <xsl:text>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-</xsl:text> <xsl:value-of select="@cve"/> | |
46 </xsl:attribute> | |
47 <xsl:text>CVE-</xsl:text> <xsl:value-of select="@cve"/> | |
48 </a> | |
49 </xsl:if> | |
36 | 50 |
37 <xsl:if test="@advisory"> | 51 <xsl:if test="@core"> |
52 <xsl:if test="@cert or @cve"> | |
53 <xsl:text>  </xsl:text> | |
54 </xsl:if> | |
55 <a href="{@href}"> <xsl:value-of select="@core"/> </a> | |
56 </xsl:if> | |
38 | 57 |
39 <a href="{@advisory}"> | 58 <xsl:if test="@cert or @cve or @core"> |
40 <xsl:text>Advisory</xsl:text> | 59 <br/> |
41 </a> | 60 </xsl:if> |
42 | 61 |
43 <br/> | 62 <xsl:text>Not vulnerable: </xsl:text> <xsl:value-of select="@good"/> <br/> |
44 </xsl:if> | 63 <xsl:text>Vulnerable: </xsl:text> <xsl:value-of select="@vulnerable"/> |
45 | 64 |
46 <xsl:if test="@cert"> | 65 <xsl:for-each select="patch"> |
66 <br/> | |
47 | 67 |
48 <a> | 68 <a> |
69 <xsl:attribute name="href"> | |
70 <xsl:text>/download/</xsl:text> <xsl:value-of select="@name"/> | |
71 </xsl:attribute> | |
72 <xsl:text>The patch</xsl:text> | |
73 </a> | |
49 | 74 |
50 <xsl:attribute name="href"> | 75 <xsl:text>  </xsl:text> |
51 | 76 |
52 <xsl:text>http://www.kb.cert.org/vuls/id/</xsl:text> | 77 <a> |
53 <xsl:value-of select="@cert"/> | 78 <xsl:attribute name="href"> |
54 </xsl:attribute> | 79 <xsl:text>/download/</xsl:text> <xsl:value-of select="@name"/> <xsl:text>.asc</xsl:text> |
80 </xsl:attribute> | |
81 <xsl:text>pgp</xsl:text> | |
82 </a> | |
55 | 83 |
56 <xsl:text>VU#</xsl:text> | 84 <xsl:if test="@versions"> |
57 <xsl:value-of select="@cert"/> | 85 <xsl:text>  (for </xsl:text> <xsl:value-of select="@versions"/> <xsl:text>)</xsl:text> |
86 </xsl:if> | |
87 </xsl:for-each> | |
58 | 88 |
59 </a> | 89 </p> |
60 </xsl:if> | 90 </li> |
91 </xsl:template> | |
61 | 92 |
62 <xsl:if test="@cve"> | |
63 | |
64 <xsl:if test="@cert"> | |
65 | |
66 <xsl:text> </xsl:text> | |
67 </xsl:if> | |
68 | |
69 <a> | |
70 | |
71 <xsl:attribute name="href"> | |
72 | |
73 <xsl:text>http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-</xsl:text> | |
74 <xsl:value-of select="@cve"/> | |
75 </xsl:attribute> | |
76 | |
77 <xsl:text>CVE-</xsl:text> | |
78 <xsl:value-of select="@cve"/> | |
79 | |
80 </a> | |
81 </xsl:if> | |
82 | |
83 <xsl:if test="@core"> | |
84 | |
85 <xsl:if test="@cert or @cve"> | |
86 | |
87 <xsl:text> </xsl:text> | |
88 </xsl:if> | |
89 | |
90 <a href="{@href}"> | |
91 | |
92 <xsl:value-of select="@core"/> | |
93 </a> | |
94 </xsl:if> | |
95 | |
96 <xsl:if test="@cert or @cve or @core"> | |
97 | |
98 <br/> | |
99 </xsl:if> | |
100 | |
101 <xsl:text>Not vulnerable: </xsl:text> | |
102 <xsl:value-of select="@good"/> | |
103 <br/> | |
104 | |
105 <xsl:text>Vulnerable: </xsl:text> | |
106 <xsl:value-of select="@vulnerable"/> | |
107 | |
108 <xsl:for-each select="patch"> | |
109 | |
110 <br/> | |
111 | |
112 <a> | |
113 | |
114 <xsl:attribute name="href"> | |
115 | |
116 <xsl:text>/download/</xsl:text> | |
117 <xsl:value-of select="@name"/> | |
118 </xsl:attribute> | |
119 | |
120 <xsl:text>The patch</xsl:text> | |
121 | |
122 </a> | |
123 | |
124 <xsl:text> </xsl:text> | |
125 | |
126 <a> | |
127 | |
128 <xsl:attribute name="href"> | |
129 | |
130 <xsl:text>/download/</xsl:text> | |
131 <xsl:value-of select="@name"/> | |
132 <xsl:text>.asc</xsl:text> | |
133 </xsl:attribute> | |
134 | |
135 <xsl:text>pgp</xsl:text> | |
136 | |
137 </a> | |
138 | |
139 <xsl:if test="@versions"> | |
140 | |
141 <xsl:text> (for </xsl:text> | |
142 <xsl:value-of select="@versions"/> | |
143 <xsl:text>)</xsl:text> | |
144 </xsl:if> | |
145 </xsl:for-each> | |
146 | |
147 </p> | |
148 | |
149 </li> | |
150 </xsl:template> | |
151 | 93 |
152 </xsl:stylesheet> | 94 </xsl:stylesheet> |