changeset 649:ba913f7cf7c1

Regenerated.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 20 Aug 2012 13:10:56 +0000
parents 6c0532e6982f
children 26613f012ec8
files xslt/body.xslt xslt/menu.xslt
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/xslt/body.xslt
+++ b/xslt/body.xslt
@@ -59,8 +59,6 @@
 
                   <br/>
 
-                  <br/>
-
                   <xsl:apply-templates select="document(concat($XML, '/menu.xml'))                          /menus/menu[@lang = $lang]/item"/>
 
                </td>
--- a/xslt/menu.xslt
+++ b/xslt/menu.xslt
@@ -76,9 +76,11 @@
 
             <xsl:otherwise>
 
-               <a href="{@href}">
-                  <xsl:value-of select="@year"/>
-               </a>
+               <xsl:if test="@href"> 
+                  <a href="{@href}">
+                     <xsl:value-of select="@year"/>
+                  </a>
+               </xsl:if>
 
                <br/>
             </xsl:otherwise>
@@ -101,7 +103,7 @@
       <br/>
    </xsl:template>
 
-   <xsl:template match="menu/item[not(@href)]">
+   <xsl:template match="menu/item[not(@href) and not(@year)]">
 
       <xsl:value-of select=" normalize-space(text())"/> 
       <br/>