annotate xsls/error.xsls @ 1272:e6f3391df2ea

Explicitly set background and font colors of error pages.
author Valentin Bartenev <vbart@nginx.com>
date Fri, 15 Aug 2014 16:31:59 +0400
parents 81ad082bc837
children 59f7fb43e39c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
580
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
1 <!--
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
2 Copyright (C) Igor Sysoev
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
3 Copyright (C) Nginx, Inc.
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
4 -->
be54c443235a Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents: 543
diff changeset
5
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6 X:stylesheet {
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7
111
f31230984540 Fixed DOCTYPE generation to include the public system identifier.
Ruslan Ermilov <ru@nginx.com>
parents: 107
diff changeset
8 X:output method="html" version="4.0" indent="no" encoding="utf-8";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 X:strip-space elements = "*";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12 <!--
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13 -- a current directory of a XSLT script is where the script is stored,
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14 -- but not where XSLT processor has been started to run the script
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 -->
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 X:param XML = "'../xml'";
721
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
17 X:param YEAR;
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
18 X:param TRANS;
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
19
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
20 X:var LINK = "/error/@link";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
21 X:var LANG = "/error/@lang";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
22
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
23 X:include href = "dirname.xslt";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
24 X:include href = "menu.xslt";
81ad082bc837 Simplified things by including books.xslt, download.xslt and security.xslt
Ruslan Ermilov <ru@nginx.com>
parents: 580
diff changeset
25 X:include href = "ga.xslt";
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28 X:template = "/error" {
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 111
diff changeset
29 <html><head><title> !{@name} </title>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30
107
ee725af08951 Two unrelated changes were erroneously committed simultaneously:
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
31 <style type="text/css">!{ normalize-space('
1272
e6f3391df2ea Explicitly set background and font colors of error pages.
Valentin Bartenev <vbart@nginx.com>
parents: 721
diff changeset
32 body { background: white;
e6f3391df2ea Explicitly set background and font colors of error pages.
Valentin Bartenev <vbart@nginx.com>
parents: 721
diff changeset
33 color: black;
e6f3391df2ea Explicitly set background and font colors of error pages.
Valentin Bartenev <vbart@nginx.com>
parents: 721
diff changeset
34 font-family: Georgia, serif; }
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35 ') }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 </style>
543
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 123
diff changeset
37
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 123
diff changeset
38 !ga ()
9085f0c59dc6 Google Analytics tracking script added to all pages
Sergey Budnevitch <sb@waeme.net>
parents: 123
diff changeset
39
107
ee725af08951 Two unrelated changes were erroneously committed simultaneously:
Ruslan Ermilov <ru@nginx.com>
parents: 0
diff changeset
40 </head>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
42 <body>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43 <table width="100%">
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 <tr>
123
7db449e89e92 Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents: 111
diff changeset
45 <td width="70%"><center><h1> !{@name} </h1></center></td>
0
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46 <td rowspan="2" align="right" valign="top">
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47 <img src="/nginx.gif" alt="nginx"/><br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50 <br/>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 !! "document(concat($XML, '/menu.xml'))
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53 /menus/menu[@lang = current()/@lang]/item";
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54 </td>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55 </tr>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
56 </table>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57 </body>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 </html>
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59 }
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60
61e04fc01027 Initial import of the nginx.org website.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 }