changeset 598:1902d38f0b05

"editor" and "translator" in articles are now output regardless of "author" presence. Modules can now have "translator" as well.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Jul 2012 09:05:10 +0000
parents 8659ea8ffbe1
children 992a542565b1
files dtd/module.dtd xsls/body.xsls
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dtd/module.dtd
+++ b/dtd/module.dtd
@@ -10,6 +10,7 @@
             link        CDATA #REQUIRED
             lang        CDATA #REQUIRED
             rev         CDATA #IMPLIED
+            translator  CDATA #IMPLIED
             toc         (yes | no) "yes"
 >
 
--- a/xsls/body.xsls
+++ b/xsls/body.xsls
@@ -55,12 +55,14 @@ X:template body (lang) {
 
         !!;
 
-        X:if "@author" {
+        X:if "@author or @editor or @translator" {
             <table width="100%"><tr><td align="right">
 
-            !{document(concat($XML, '/i18n.xml'))
-                       /i18n/text[@lang = $lang]/item[@id='author']}
-            X:text { } !{@author} <br/>
+            X:if "@author" {
+                !{document(concat($XML, '/i18n.xml'))
+                           /i18n/text[@lang = $lang]/item[@id='author']}
+                X:text { } !{@author} <br/>
+            }
 
             X:if "@editor" {
                 !{document(concat($XML, '/i18n.xml'))