Show
Ignore:
Timestamp:
09/03/10 23:16:34 (21 months ago)
Author:
winfried
Message:

Making the displaying of the division with the submenu conditional on
the existance of submenu items. closes #207

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/htdocs/xslt/HelpIM_html_UI_BSL.xslt

    r1167 r1173  
    159159                                                --> 
    160160                                                <xsl:for-each select="//menuEntry[@title=//menu/@currentMenu]"> 
    161                                                         <div id="submenu"> 
    162                                                                 <ul class="subnavigation"> 
    163                                                                         <xsl:for-each select="subMenu"> 
    164                                                                                 <xsl:element name="li"> 
    165                                                                                         <xsl:if test="//menu/@currentSubMenu = @title"> 
    166                                                                                                 <xsl:attribute name="class">active</xsl:attribute> 
    167                                                                                         </xsl:if> 
    168                                                                                         <a href="{@action}"><xsl:value-of select="@title" /></a> 
    169                                                                                 </xsl:element> 
    170                                                                         </xsl:for-each> 
    171                                                                 </ul> 
    172                                                         </div> 
     161                                                        <xsl:if test="subMenu"> 
     162                                                                <div id="submenu"> 
     163                                                                        <ul class="subnavigation"> 
     164                                                                                <xsl:for-each select="subMenu"> 
     165                                                                                        <xsl:element name="li"> 
     166                                                                                                <xsl:if test="//menu/@currentSubMenu = @title"> 
     167                                                                                                        <xsl:attribute name="class">active</xsl:attribute> 
     168                                                                                                </xsl:if> 
     169                                                                                                <a href="{@action}"><xsl:value-of select="@title" /></a> 
     170                                                                                        </xsl:element> 
     171                                                                                </xsl:for-each> 
     172                                                                        </ul> 
     173                                                                </div> 
     174                                                        </xsl:if> 
    173175                                                </xsl:for-each> 
    174176                                        </div>