comparison xsls/error.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 ee725af08951
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
13
14 X:template = "/error" {
15 <html><head><title> !{@title} </title></head>
16
17 <style>!{ normalize-space('
18 body { font-family: Georgia, serif; }
19 ') }
20 </style>
21
22 <body>
23 <table width="100%">
24 <tr>
25 <td width="70%"><center><h1> !{@title} </h1></center></td>
26 <td rowspan="2" align="right" valign="top">
27 <img src="/nginx.gif" alt="nginx"/><br/>
28
29 <br/>
30 <br/>
31
32 !! "document(concat($XML, '/menu.xml'))
33 /menus/menu[@lang = current()/@lang]/item";
34 </td>
35 </tr>
36 </table>
37 </body>
38 </html>
39 }
40
41
42 X:template = "menu/item" {
43 <a href="{@href}"> !{ normalize-space(text()) } </a> <br/>
44 }
45
46
47 X:template = "menu/item[not(@href)]" {
48 !{ normalize-space(text()) } <br/>
49 }
50
51 }