Mercurial > hg > nginx-site
changeset 707:b133b1f44765
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 04 Oct 2012 15:02:55 +0000 |
parents | cd0d1f0130db |
children | 25584379a968 |
files | xslt/article.xslt xslt/download.xslt xslt/menu.xslt xslt/news.xslt |
diffstat | 4 files changed, 12 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/xslt/article.xslt +++ b/xslt/article.xslt @@ -11,8 +11,6 @@ <xsl:param name="ORIGIN"/> - <xsl:param name="NOLANGORIGIN"/> - <xsl:param name="TRANS"/> <xsl:variable select="/article/@link | /module/@link" name="LINK"/> @@ -70,4 +68,4 @@ </html> </xsl:template> -</xsl:stylesheet> \ No newline at end of file +</xsl:stylesheet>
--- a/xslt/download.xslt +++ b/xslt/download.xslt @@ -11,6 +11,8 @@ <xsl:variable select="/article/@link" name="LINK"/> + <xsl:variable select="/article/@lang" name="LANG"/> + <xsl:include href="dirname.xslt"/> <xsl:include href="link.xslt"/>
--- a/xslt/menu.xslt +++ b/xslt/menu.xslt @@ -24,7 +24,7 @@ <xsl:otherwise> <xsl:choose> - <xsl:when test="@switchlang != ''"> + <xsl:when test="$TRANS and @switchlang"> <xsl:choose> <xsl:when test="contains($TRANS, @switchlang)"> @@ -32,18 +32,8 @@ <a> <xsl:attribute name="href"> - <xsl:choose> - <xsl:when test="$ROOT != '' "> - - <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/', $NOLANGORIGIN)"/> - </xsl:when> - - <xsl:otherwise> - - <xsl:value-of select=" concat(@switchlang, '/', $NOLANGORIGIN)"/> - </xsl:otherwise> - </xsl:choose> + <xsl:value-of select=" concat($ROOT, '/', @switchlang, '/', substring-after($LINK, concat('/', $LANG, '/')))"/> </xsl:attribute> <xsl:value-of select=" normalize-space(text())"/> @@ -150,4 +140,4 @@ <br/> </xsl:template> -</xsl:stylesheet> \ No newline at end of file +</xsl:stylesheet>
--- a/xslt/news.xslt +++ b/xslt/news.xslt @@ -9,10 +9,16 @@ <xsl:param name="YEAR"/> + <xsl:param name="ORIGIN"/> + + <xsl:param name="TRANS"/> + <xsl:variable select="'http://nginx.org'" name="SITE"/> <xsl:variable select="/news/@link" name="LINK"/> + <xsl:variable select="/news/@lang" name="LANG"/> + <xsl:include href="dirname.xslt"/> <xsl:include href="link.xslt"/>