<?xml version="1.0"  encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="xsl_functions.xsl" />
<xsl:import href="nd_templates.xsl" />
<xsl:import href="pageComponents_html.xsl" />
<xsl:import href="menue_html_dojo.xsl" />
<!--In diesem Stylesheet können Sie individuelle templates unterbringen,
  die in ihrer Präzedenz das normale Stylesheet 
  pageComponents_html.xsl überragt. --> 
<xsl:import href="pageComponents_html_final.xsl" />

<xsl:output method="html" indent="yes" /> 
<xsl:template match="/">
<xsl:variable name="user"  select = "menue/user"/>
<xsl:variable name="mandantenid">
<xsl:variable name="useragent" select="'mozilla'" /> 
<xsl:choose>
<xsl:when test="string-length(menue/mandantenid) &gt; 0 and menue/mandantenid !='default'">
<xsl:value-of select="concat(menue/mandantenid,'/')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="''" />
</xsl:otherwise>
</xsl:choose>  
</xsl:variable>

<xsl:choose>
<xsl:when test="/menue/@showNavigation!='true'">
<xsl:call-template name="nd_menu_content" />
</xsl:when>
<xsl:otherwise>
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >]]></xsl:text>
<html lang="de">
<head>
    <xsl:call-template name="nd_htmlhead">
    <xsl:with-param name="title" select="concat('Submenue ',/menue/user)" />
    </xsl:call-template> 
<script src="../xml/js/jquery/jquery-1.12.4.min.js"></script>
</head>
<body class="has-navbar-fixed-top">
<!--#Template Beginn Top-Navigation-->
<xsl:call-template name="nd_navi_top" /> 
<!--#Template Ende Top-Navigation-->

<div class="columns">

<xsl:if test="/menue/@showNavigation='true'"> 
<xsl:for-each select="/menue"><!-- XSL Context eine Ebene tiefer -->
   <!--#Template Beginn Navigations-Panel Auswertungen-->
<xsl:call-template name="nd_navi_panel" /> 
<!--#Template Ende Navigations-Panel Auswertungen-->

   </xsl:for-each>
</xsl:if>
   
<xsl:call-template name="nd_menu_content" />

   </div> <!--columns -->
    <xsl:call-template name="footer" />
</body>
</html>

</xsl:otherwise>
</xsl:choose>

</xsl:template>

<xsl:template name="nd_menu_content">
<div id="content">
<div id="header">
<xsl:for-each select="/*/menupos/eintraege/eintrag">
   <xsl:if test="position()=last()">
   <xsl:call-template name="nd_pagetitle">
<xsl:with-param name="title" select="titel"/>
<xsl:with-param name="subtitle" select="''"/>
<xsl:with-param name="icon_classname" select="css_class"/>

</xsl:call-template>
   </xsl:if>
  </xsl:for-each>
  <xsl:call-template name="nd_breadcrumb" />
  <xsl:call-template name="nd_submenu" />
</div>
</div>
</xsl:template>
</xsl:stylesheet>