|
|
This describes how to change the menu to show only only the top-level menu entries.
Put this line in your page2xhtml.xsl where you want the top-level menu:
<xsl:apply-templates select="xhtml:div[@id = 'menu']/xhtml:div[starts-with(@class, 'menublock-')]/xhtml:div[starts-with(@class, 'menuitem-')]" mode="toplevel"/>
And add these matches near the bottom:
<xsl:template match="xhtml:div" mode="toplevel">
<xsl:apply-templates select="xhtml:a" mode="toplevel"/>
</xsl:template>
<xsl:template match="xhtml:a" mode="toplevel">
<div class="toplevel"><xsl:apply-templates select="."/></div>
</xsl:template>
|