Mercurial > hg > nginx-site
view xsls/error.xsls @ 1017:9f9a427a73eb
Fixed broken links to chinese versions of some modules.
The chinese version contains untranslated copies of english documentation for
random_index and realip modules. The result is the appearance of 'translation
to chinese' link for this modules pointing to non-existing document. This
files are removed.
Also, broken links are generated for the chinese version of the "flv" module,
but the translation exists, although not enabled for publication. Since
contents of file looks like a valid translation, it is allowed to be published.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 18 Nov 2013 12:48:10 +0400 |
parents | 81ad082bc837 |
children | e6f3391df2ea |
line wrap: on
line source
<!-- Copyright (C) Igor Sysoev Copyright (C) Nginx, Inc. --> X:stylesheet { X:output method="html" version="4.0" indent="no" encoding="utf-8"; X:strip-space elements = "*"; <!-- -- a current directory of a XSLT script is where the script is stored, -- but not where XSLT processor has been started to run the script --> X:param XML = "'../xml'"; X:param YEAR; X:param TRANS; X:var LINK = "/error/@link"; X:var LANG = "/error/@lang"; X:include href = "dirname.xslt"; X:include href = "menu.xslt"; X:include href = "ga.xslt"; X:template = "/error" { <html><head><title> !{@name} </title> <style type="text/css">!{ normalize-space(' body { font-family: Georgia, serif; } ') } </style> !ga () </head> <body> <table width="100%"> <tr> <td width="70%"><center><h1> !{@name} </h1></center></td> <td rowspan="2" align="right" valign="top"> <img src="/nginx.gif" alt="nginx"/><br/> <br/> <br/> !! "document(concat($XML, '/menu.xml')) /menus/menu[@lang = current()/@lang]/item"; </td> </tr> </table> </body> </html> } }