Mercurial > hg > nginx-site
diff xsls/link.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 | be54c443235a |
children | b2db67ca29cc |
line wrap: on
line diff
--- a/xsls/link.xsls Fri Jul 20 09:07:28 2012 +0000 +++ b/xsls/link.xsls Fri Jul 20 09:27:55 2012 +0000 @@ -7,6 +7,10 @@ X:template = "img" { <img src="{@href}"> !!; </img> } +X:template = "origin" { + <a href="{document($ORIGIN)/*/@link}"> !!; </a> +} + X:template = "link[@url]" { <a href="{@url}"> X:if "count(node()) != 0" { !!; } else { !{@url} }