comparison xsls/article.xsls @ 591:b57657247299

Reduced the number of templates.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 19 Jul 2012 04:57:01 +0000
parents be54c443235a
children 89a4e934d207
comparison
equal deleted inserted replaced
590:05761a8e38f6 591:b57657247299
32 32
33 33
34 X:template = "/article | /module" { 34 X:template = "/article | /module" {
35 <html> 35 <html>
36 36
37 <head> 37 X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } }
38
39 <title> !{@name} </title>
40
41 !style (lang="@lang")
42
43 !ga ()
44
45 </head>
46
47 !body (lang="@lang")
48
49 </html>
50 }
51
52
53 X:template = "/article[@lang='he'] | /module[@lang='he']" {
54 <html dir="rtl">
55 38
56 <head> 39 <head>
57 40
58 <title> !{@name} </title> 41 <title> !{@name} </title>
59 42