comparison xsls/article.xsls @ 123:7db449e89e92

Unified the use of the "name" attribute instead of "title".
author Ruslan Ermilov <ru@nginx.com>
date Fri, 21 Oct 2011 06:17:16 +0000
parents 871ea104fdbf
children b7b82f978b1d
comparison
equal deleted inserted replaced
122:871ea104fdbf 123:7db449e89e92
23 X:include href = "directive.xslt"; 23 X:include href = "directive.xslt";
24 X:include href = "content.xslt"; 24 X:include href = "content.xslt";
25 X:include href = "versions.xslt"; 25 X:include href = "versions.xslt";
26 26
27 27
28 X:template = "/article" { 28 X:template = "/article | /module" {
29 <html><head> 29 <html>
30 30
31 <title> !{@title} </title> 31 <head>
32 32
33 !style (lang="$LANG") 33 <title> !{@name} </title>
34
35 !style (lang="@lang")
34 36
35 </head> 37 </head>
36 38
37 !body (lang="$LANG") 39 !body (lang="@lang")
38 40
39 </html> 41 </html>
40 } 42 }
41 43
42 44
43 X:template = "/article[@lang='he']" { 45 X:template = "/article[@lang='he'] | /module[@lang='he']" {
44 <html dir="rtl"><head> 46 <html dir="rtl">
45 47
46 <title> !{@title} </title> 48 <head>
47 49
48 !style (lang="$LANG") 50 <title> !{@name} </title>
51
52 !style (lang="@lang")
49 53
50 </head> 54 </head>
51 55
52 !body (lang="$LANG") 56 !body (lang="@lang")
53
54 </html>
55 }
56
57
58 X:template = "/module" {
59 <html><head>
60
61 <title> !{@title} </title>
62
63 !style (lang="$LANG")
64
65 </head>
66
67 !body (lang="$LANG")
68
69 </html>
70 }
71
72
73 X:template = "/module[@lang='he']" {
74 <html dir="rtl"><head>
75
76 <title> !{@title} </title>
77
78 !style (lang="$LANG")
79
80 </head>
81
82 !body (lang="$LANG")
83 57
84 </html> 58 </html>
85 } 59 }
86 60
87 61