comparison xsls/books.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 X:param YEAR;
13
14 X:var LINK = "/article/@link";
15
16 X:include href = "dirname.xslt";
17 X:include href = "link.xslt";
18 X:include href = "style.xslt";
19 X:include href = "body.xslt";
20 X:include href = "menu.xslt";
21 X:include href = "content.xslt";
22
23
24 X:template = "/article" {
25 <html><head>
26
27 <title> !{@title} </title>
28
29 !style ()
30
31 </head>
32
33 !body (lang="/article/@lang")
34
35 </html>
36 }
37
38
39 X:template = "book" {
40
41 <table><tr>
42
43 <td bgcolor="#EEEEEE">
44 <a href="{@link}">
45 <img src="{@cover}" style="padding: 2pt;" border="0"/>
46 </a>
47 </td>
48
49 <td>
50 X:text {title: } <a href="{@link}">!{@title}</a> <br/>
51 X:text {author: }
52 X:if "@site" { <a href="{@site}">!{@author}</a> } else { !{@author} } <br/>
53 X:if "@translator" { X:text {translator: } !{@translator} <br/> }
54 X:if "@publisher" { X:text {publisher: } !{@publisher} <br/> }
55 X:text {language: } !{@lang}
56 </td>
57
58 </tr></table>
59 }
60
61 }