diff xslt/menu.xslt @ 649:ba913f7cf7c1

Regenerated.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 20 Aug 2012 13:10:56 +0000
parents 6fa99c92e40a
children 2ced25001893
line wrap: on
line diff
--- a/xslt/menu.xslt	Mon Aug 20 13:06:47 2012 +0000
+++ b/xslt/menu.xslt	Mon Aug 20 13:10:56 2012 +0000
@@ -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/>