comparison xsls/security.xsls @ 0:61e04fc01027

Initial import of the nginx.org website.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 11 Aug 2011 12:19:13 +0000
parents
children c007b57d617c
comparison
equal deleted inserted replaced
-1:000000000000 0:61e04fc01027
1 X:stylesheet {
2
3 X:output method="html" indent="no" encoding="utf-8";
4
5 X:strip-space elements = "*";
6
7 <!--
8 -- a current directory of a XSLT script is where the script is stored,
9 -- but not where XSLT processor has been started to run the script
10 -->
11 X:param XML = "'../xml'";
12 X:param YEAR;
13
14 X:var LINK = "/article/@link";
15
16 X:include href = "dirname.xslt";
17 X:include href = "link.xslt";
18 X:include href = "style.xslt";
19 X:include href = "body.xslt";
20 X:include href = "menu.xslt";
21 X:include href = "content.xslt";
22
23
24 X:template = "/article" {
25 <html><head>
26
27 <title> !{@title} </title>
28
29 !style ()
30
31 </head>
32
33 !body (lang="/article/@lang")
34
35 </html>
36 }
37
38
39 X:template = "security" { <ul> !!; </ul> }
40
41
42 X:template = "security/item" {
43
44 <li>
45 <p class="noindent">
46
47 !{@title}<br/>
48
49 X:if "@severity = 'major'" {
50 X:text{Severity: } <b>!{@severity}</b><br/>
51 } else {
52 X:text{Severity: } !{@severity}<br/>
53 }
54
55 X:if "@cert" {
56 <a>
57 X:attribute "href" {
58 X:text {http://www.kb.cert.org/vuls/id/} !{@cert}
59 }
60 X:text {VU#} !{@cert}
61 </a>
62 }
63
64 X:if "@cve" {
65 X:if "@cert" {
66 X:text {&#xA0;&#xA0;}
67 }
68 <a>
69 X:attribute "href" {
70 X:text {http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-} !{@cve}
71 }
72 X:text {CVE-} !{@cve}
73 </a>
74 }
75
76 X:if "@core" {
77 X:if "@cert or @cve" {
78 X:text {&#xA0;&#xA0;}
79 }
80 <a href="{@href}"> !{@core} </a>
81 }
82
83 X:if "@cert or @cve or @core" {
84 <br/>
85 }
86
87 X:text {Not vulnerable: } !{@good} <br/>
88 X:text {Vulnerable: } !{@vulnerable} <br/>
89
90 X:if "@patch" {
91 <a>
92 X:attribute "href" {
93 X:text {/download/} !{@patch}
94 }
95 X:text {The patch}
96 </a>
97
98 X:text {&#xA0;&#xA0;}
99
100 <a>
101 X:attribute "href" {
102 X:text {/download/} !{@patch} X:text {.asc}
103 }
104 X:text {pgp}
105 </a>
106 }
107
108 </p>
109 </li>
110 }
111
112
113 }