comparison xsls/body.xsls @ 600:89a4e934d207

Emit a warning with a link to English original if translation is outdated.
author Ruslan Ermilov <ru@nginx.com>
date Fri, 20 Jul 2012 09:27:55 +0000
parents 1902d38f0b05
children b2db67ca29cc
comparison
equal deleted inserted replaced
599:992a542565b1 600:89a4e934d207
36 </td> 36 </td>
37 37
38 </tr> 38 </tr>
39 39
40 <tr><td valign="top"> 40 <tr><td valign="top">
41
42 X:if "$ORIGIN and document($ORIGIN)/*/@rev and
43 (not(@rev) or @rev != document($ORIGIN)/*/@rev)" {
44 <span>
45
46 X:if "@lang = 'he'" { X:attribute "class" { X:text{ltr} } }
47
48 <blockquote class="note">
49
50 X:if "document(concat($XML, '/i18n.xml'))
51 /i18n/text[@lang = $lang]/item[@id='outdated']" {
52 !! "document(concat($XML, '/i18n.xml'))
53 /i18n/text[@lang = $lang]/item[@id='outdated']";
54 } else {
55 !! "document(concat($XML, '/i18n.xml'))
56 /i18n/text[@lang = 'en']/item[@id='outdated']";
57 }
58
59 </blockquote>
60 </span>
61 }
41 62
42 X:if "@toc = 'yes' and section[@id and @name]" { 63 X:if "@toc = 'yes' and section[@id and @name]" {
43 <table width="100%"><tr><td align="{$INDEX_ALIGN}"> 64 <table width="100%"><tr><td align="{$INDEX_ALIGN}">
44 X:for-each "section[@id and @name]" { 65 X:for-each "section[@id and @name]" {
45 <a href="#{@id}"> !{@name} </a><br/> 66 <a href="#{@id}"> !{@name} </a><br/>