Mercurial > hg > nginx-site
diff 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 |
line wrap: on
line diff
--- a/xsls/article.xsls Thu Jul 19 04:56:13 2012 +0000 +++ b/xsls/article.xsls Thu Jul 19 04:57:01 2012 +0000 @@ -34,24 +34,7 @@ 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>