Mercurial > hg > nginx-site
comparison xsls/books.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 | ae713f8acaca |
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:output method="html" version="4.0" indent="no" encoding="utf-8"; | |
9 | |
10 X:strip-space elements = "*"; | |
11 | |
12 <!-- | |
13 -- a current directory of a XSLT script is where the script is stored, | |
14 -- but not where XSLT processor has been started to run the script | |
15 --> | |
16 X:param XML = "'../xml'"; | |
17 X:param YEAR; | |
18 | |
19 X:var LINK = "/article/@link"; | |
20 | |
21 X:include href = "dirname.xslt"; | |
22 X:include href = "link.xslt"; | |
23 X:include href = "style.xslt"; | |
24 X:include href = "body.xslt"; | |
25 X:include href = "menu.xslt"; | |
26 X:include href = "ga.xslt"; | |
27 X:include href = "content.xslt"; | |
28 | |
29 | |
30 X:template = "/article" { | |
31 <html><head> | |
32 | |
33 <title> !{@name} </title> | |
34 | |
35 !style (lang="@lang") | |
36 | |
37 !ga () | |
38 | |
39 </head> | |
40 | |
41 !body (lang="@lang") | |
42 | |
43 </html> | |
44 } | |
45 | |
46 | 7 |
47 X:template = "book" { | 8 X:template = "book" { |
48 | 9 |
49 <table><tr> | 10 <table><tr> |
50 | 11 |