comparison xsls/download.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 cd0d1f0130db
children b2b10d564893
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 X:var LANG = "/article/@lang";
21
22 X:include href = "dirname.xslt";
23 X:include href = "link.xslt";
24 X:include href = "style.xslt";
25 X:include href = "body.xslt";
26 X:include href = "menu.xslt";
27 X:include href = "ga.xslt";
28 X:include href = "content.xslt";
29
30
31 X:template = "/article" {
32 <html><head>
33
34 <title> !{@name} </title>
35
36 !style (lang="@lang")
37
38 !ga ()
39
40 </head>
41
42 !body (lang="@lang")
43
44 </html>
45 }
46
47 7
48 X:template = "download" { <table width="100%"> !! "item"; </table> } 8 X:template = "download" { <table width="100%"> !! "item"; </table> }
49 9
50 10
51 X:template = "download/item[position() &lt;= ../@last]" { 11 X:template = "download/item[position() &lt;= ../@last]" {