changeset 591:b57657247299

Reduced the number of templates.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 19 Jul 2012 04:57:01 +0000
parents 05761a8e38f6
children d40371689c1c
files xsls/article.xsls
diffstat 1 files changed, 1 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/xsls/article.xsls
+++ b/xsls/article.xsls
@@ -34,24 +34,7 @@ X:include href = "versions.xslt";
 X:template = "/article | /module" {
     <html>
 
-    <head>
-
-    <title> !{@name} </title>
-
-    !style (lang="@lang")
-
-    !ga ()
-
-    </head>
-
-    !body (lang="@lang")
-
-    </html>
-}
-
-
-X:template = "/article[@lang='he'] | /module[@lang='he']" {
-    <html dir="rtl">
+    X:if "@lang = 'he'" { X:attribute "dir" { X:text{rtl} } }
 
     <head>