comparison xsls/error.xsls @ 721:81ad082bc837

Simplified things by including books.xslt, download.xslt and security.xslt into article.xslt, and always using article.xslt to generate HTMLs. While here, moved versions.xml from common dependencies to article dependencies. Fixed menu in 404.html by applying templates from menu.xslt, and fixed its dependency on DTD.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 12 Oct 2012 09:10:31 +0000
parents be54c443235a
children e6f3391df2ea
comparison
equal deleted inserted replaced
720:9934338f83af 721:81ad082bc837
2 Copyright (C) Igor Sysoev 2 Copyright (C) Igor Sysoev
3 Copyright (C) Nginx, Inc. 3 Copyright (C) Nginx, Inc.
4 --> 4 -->
5 5
6 X:stylesheet { 6 X:stylesheet {
7
8 X:include href = "ga.xslt";
9 7
10 X:output method="html" version="4.0" indent="no" encoding="utf-8"; 8 X:output method="html" version="4.0" indent="no" encoding="utf-8";
11 9
12 X:strip-space elements = "*"; 10 X:strip-space elements = "*";
13 11
14 <!-- 12 <!--
15 -- a current directory of a XSLT script is where the script is stored, 13 -- a current directory of a XSLT script is where the script is stored,
16 -- but not where XSLT processor has been started to run the script 14 -- but not where XSLT processor has been started to run the script
17 --> 15 -->
18 X:param XML = "'../xml'"; 16 X:param XML = "'../xml'";
17 X:param YEAR;
18 X:param TRANS;
19
20 X:var LINK = "/error/@link";
21 X:var LANG = "/error/@lang";
22
23 X:include href = "dirname.xslt";
24 X:include href = "menu.xslt";
25 X:include href = "ga.xslt";
19 26
20 27
21 X:template = "/error" { 28 X:template = "/error" {
22 <html><head><title> !{@name} </title> 29 <html><head><title> !{@name} </title>
23 30
47 </table> 54 </table>
48 </body> 55 </body>
49 </html> 56 </html>
50 } 57 }
51 58
52
53 X:template = "menu/item" {
54 <a href="{@href}"> !{ normalize-space(text()) } </a> <br/>
55 } 59 }
56
57
58 X:template = "menu/item[not(@href)]" {
59 !{ normalize-space(text()) } <br/>
60 }
61
62 }