Your IP : 52.14.179.200


Current Path : /usr/local/mgr5/skins/orion/
Upload File :
Current File : //usr/local/mgr5/skins/orion/desktop.xsl

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mgr="http://ispsystem.com/xslplugin" exclude-result-prefixes="mgr">
  <xsl:output method="html" encoding="UTF-8" indent="yes" />
  <xsl:variable name="theme" select="/doc/@theme"/>
  <xsl:variable name="binary" select="/doc/@binary"/>
  <xsl:variable name="logo" select="/doc/@logo"/>
  <xsl:variable name="localdir" select="/doc/@localdir"/>
  <xsl:variable name="host" select="/doc/@host"/>
  <xsl:variable name="hostname" select="/doc/user/@hostname"/>
  <xsl:variable name="msg" select="/doc/messages"/>
  <xsl:variable name="msg_ok" select="$msg/msg[@name='msg_ok']"/>
  <xsl:variable name="msg_cancel" select="$msg/msg[@name='msg_cancel']"/>
  <xsl:variable name="fixpng" select="/doc/@fixpng"/>
  <xsl:variable name="ver" select="/doc/version/core"/>
  <xsl:variable name="rev" select="/doc/@revision"/>
  <xsl:variable name="commondir">/manimg/common/</xsl:variable>
  <xsl:variable name="developermode" ><xsl:if test="/doc/@developer_mode">developer_mode</xsl:if></xsl:variable>
  <xsl:variable name="sdeveltheme"><xsl:if test="/doc/tparams/sdeveltheme = 'true'">devel/</xsl:if></xsl:variable>
  <xsl:variable name="min"><xsl:choose><xsl:when test="/doc/tparams/sdeveltheme = 'true'"></xsl:when><xsl:otherwise>.min</xsl:otherwise></xsl:choose></xsl:variable>
  <xsl:variable name="title" select="key('msg', 'title')"/>
  <xsl:key name="msg" match="/doc/messages/msg" use="@name"/>

  <xsl:variable name="startform1">
    <xsl:call-template name="replace">
      <xsl:with-param name="input" select="/doc/mainmenu/@startform"/>
      <xsl:with-param name="from" select="'>'"/>
      <xsl:with-param name="to" select="'&amp;gt;'"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="startform">
    <xsl:call-template name="replace">
      <xsl:with-param name="input" select="$startform1"/>
      <xsl:with-param name="from" select="'&lt;'"/>
      <xsl:with-param name="to" select="'&amp;lt;'"/>
    </xsl:call-template>
  </xsl:variable>


 <xsl:variable name="startpage1">
   <xsl:call-template name="replace">
     <xsl:with-param name="input" select="/doc/mainmenu/@startpage"/>
     <xsl:with-param name="from" select="'>'"/>
     <xsl:with-param name="to" select="'&amp;gt;'"/>
   </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="startpage">
    <xsl:call-template name="replace">
      <xsl:with-param name="input" select="$startpage1"/>
      <xsl:with-param name="from" select="'&lt;'"/>
      <xsl:with-param name="to" select="'&amp;lt;'"/>
    </xsl:call-template>
  </xsl:variable>

  <xsl:template name="icon">
    <xsl:param name="elem"/>
    <xsl:choose>
      <xsl:when test="$elem/@img">
        <xsl:choose>
          <xsl:when test="$elem/@sprite">
            <div class="{$elem/@img} s16x16 s-icon"></div>
          </xsl:when>
          <xsl:otherwise>
            <div class="{$elem/@img} s16x16 s-icon" style="background:url('/manimg/common/img/{$elem/@img}.png') left top no-repeat;"></div>
          </xsl:otherwise>
        </xsl:choose>
      </xsl:when>
      <xsl:when test="$elem/@image">
        <div class="s16x16 s-icon" style="background:url('{$elem/@image}') left top no-repeat;"></div>
      </xsl:when>
    </xsl:choose>
  </xsl:template>

  <xsl:template match="/">
    <xsl:choose>
      <xsl:when test="/doc/tparams/sfrom = 'ajax' or contains(/doc/tparams/redirect, 'sfrom=ajax')">
      {
        "ok" : "true",
        "reload" : "true"
      }
      </xsl:when>
      <xsl:when test="/doc/ok and /doc/ok/@type = 'url'">
        <script>
          window.location = '<xsl:value-of select="/doc/ok" disable-output-escaping="yes" />';
        </script>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>
        <html>
          <head>
            <link rel="mask-icon" href="{$host}/manimg/common/maskicon{/doc/@binary}.svg" color="#000000"/>
            <title>
              <xsl:choose>
                <xsl:when test="$title != ''"><xsl:value-of select="$title"/></xsl:when>
                <xsl:otherwise><xsl:value-of select="/doc/user/@hostname"/></xsl:otherwise>
              </xsl:choose>
            </title>
            <!--main css-->
            <link rel="stylesheet" media="screen, print" href="{$theme}{$localdir}main.css?v={$ver}&amp;r={$rev}" type="text/css"/>
            <!--sprite css-->
            <link rel="stylesheet" media="screen, print" href="{$commondir}sprite.css?v={$ver}&amp;r={$rev}"  type="text/css"/>
            <!--<link rel="stylesheet"   media="print" href="{$theme}css/print.css?v={$ver}&amp;r={$rev}" type="text/css"/>-->
            <script>window.history.forward(1);</script>
            <meta name="viewport" content="user-scalable=no"/>
            <!--js library-->
            <!--<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
            <script>window.jQuery || document.write('&lt;script src="<xsl:value-of select="$theme"/>lib/jquery.js"&gt;\x3C/script>')</script>-->
            <script type="text/javascript" src="{$theme}lib/jquery-1.12.4.min.js"></script>
            <script type="text/javascript" src="{$theme}lib/libs.min.js?v={$ver}&amp;r={$rev}"></script>
            <script type="text/javascript" src="{$theme}lib/ZeroClipboard.min.js"></script>
            <!--js utils-->
            <script type="text/javascript" src="{$theme}{$sdeveltheme}utils{$min}.js?v={$ver}&amp;r={$rev}"></script>
            <script type="text/javascript" src="{$theme}ispui-dist/ispui.min.js?v={$ver}"></script>
            <script type="text/javascript">
              var pageInfo =  {
                _product: "<xsl:value-of select="mgr:fixquote(/doc/product)"/>",
                isBranding: <xsl:choose><xsl:when test="/doc/@localdir = 'default/'">0</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose>,
                userLevel: "<xsl:value-of select="/doc/path/@level"/>",
                features: "<xsl:value-of select="/doc/@features"/>",
                notify: "<xsl:value-of select="/doc/@notify"/>",
                binary: "<xsl:value-of select="$binary"/>",
                favicon: "<xsl:value-of select="/doc/@favicon"/>",
                localDir: "<xsl:value-of select="/doc/@localdir"/>",
                userName: "<xsl:value-of select="/doc/user/@name"/>",
                level: "<xsl:value-of select="/doc/user/@level"/>",
                hostName: "<xsl:value-of select="$hostname"/>",
                host: "<xsl:value-of select="$host"/>",
                nodata: "<xsl:value-of select="key('msg','msg_nodata')"/>",
                emptyreport: "<xsl:value-of select="key('msg','msg_emptyreport')"/>",
                notenough: "<xsl:value-of select="key('msg','msg_notenoughdata')"/>",
                theme: "<xsl:value-of select="$theme"/>",
                type: "desktop",
                title: "<xsl:choose><xsl:when test="$title != ''"><xsl:value-of select="mgr:fixquote($title)"/></xsl:when><xsl:otherwise><xsl:value-of select="/doc/user/@hostname"/></xsl:otherwise></xsl:choose>",
                user: "<xsl:value-of select="/doc/user/@name"/>",
                error: "<xsl:value-of select="key('msg','msg_error')"/>",
                duplicate: "<xsl:value-of select="key('msg','msg_duplicate')"/>",
                moreinfo: "<xsl:value-of select="key('msg','msg_moreinfo')"/>",
                tryreload: "<xsl:value-of select="key('msg','msg_tryreload')"/>",
                pwgencharacters: "<xsl:value-of select="/doc/pwgencharacters"/>",
                pwgenlen: "<xsl:value-of select="/doc/pwgenlen"/>",
                pwstrength: (<xsl:value-of select="/doc/pwstrength"/> > 3) ? 3 : "<xsl:value-of select="/doc/pwstrength"/>" - 0,
                pwErrorMsg: "<xsl:value-of select="key('msg','msg_pwcheck_error')"/>",
                step: "<xsl:value-of select="key('msg','msg_wizard_step')"/>",
                unsavedData: "<xsl:value-of select="key('msg','msg_unsaved_formdata')"/>",
                unsavedDontShow: "<xsl:value-of select="key('msg','msg_unsaved_dontshow')"/>",
                linkCopied: "<xsl:value-of select="key('msg', 'msg_linkcopied')"/>",
                linkToCopy: "<xsl:value-of select="key('msg', 'msg_linktocopy')"/>",
                formSending: "<xsl:value-of select="key('msg','msg_form_sending')"/>",
                msgCancel: "<xsl:value-of select="key('msg','msg_cancel')"/>",
                msgClose: "<xsl:value-of select="key('msg','msg_close_btn')"/>",
                dismiss: "<xsl:value-of select="key('msg','dismiss')"/>",
                pageCollapse: "<xsl:value-of select="key('msg','hint_page_collapse')"/>",
                pageExpand: "<xsl:value-of select="key('msg','hint_page_expand')"/>",
                mistakeNosel: "<xsl:value-of select="key('msg','msg_mistake_nosel')"/>",
                messages: {
                  "empty" :  "<xsl:value-of select="key('msg','msg_empty')"/>"
                  ,"hintLivefilter" : "<xsl:value-of select="key('msg','hint_livefilter')"/>"
                  ,"usefulLinksTitle" : "<xsl:value-of select="key('msg','msg_usefullinks')"/>"
                  ,"validChangeVal" : "<xsl:value-of select="key('msg','msg_valuechangedbyvalidator')"/>"
                  ,"fileMaxSize": "<xsl:value-of select="key('msg', 'msg_filemaxsize')"/>"
                  ,"warning": "<xsl:value-of select="key('msg', 'msg_warning')"/>"
                  ,"closeall": "<xsl:value-of select="key('msg', 'msg_closeall')"/>"
                },
                notfound : "<xsl:value-of select="key('msg','msg_notfound')"/>",
                total: "<xsl:value-of select="key('msg','msg_total')"/>",
                selected: "<xsl:value-of select="key('msg','msg_selected')"/>",
                confirm: "<xsl:value-of select="key('msg','msg_confirm')"/>",
                totalelem: "<xsl:value-of select="key('msg','msg_totalelem')"/>",
                commonDir: "<xsl:value-of select="$commondir"/>",
                loading: "<xsl:value-of select="key('msg','msg_tab_loading')"/>",
                startpage: '<xsl:choose><xsl:when test="not(/doc/tparams/ssavetabs)"><xsl:value-of select="$startpage"/></xsl:when><xsl:otherwise>dashboard</xsl:otherwise></xsl:choose>',
                startform: '<xsl:if test="not(/doc/tparams/ssavetabs)"><xsl:value-of select="mgr:fixquote($startform)"/></xsl:if>',
                devmode: <xsl:choose><xsl:when test="/doc/@developer_mode">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose>,
                pdfOn: <xsl:choose><xsl:when test="/doc/pdf = 'on'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose>,
                lang: "<xsl:value-of select="/doc/@lang"/>",
                project: "<xsl:value-of select="/doc/@project"/>",
                forgetTabs: <xsl:choose><xsl:when test="/doc/@closetab">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose>,
                mobile: (function detectmob() {
                  if( navigator.userAgent.match(/Android/i)
                  || navigator.userAgent.match(/webOS/i)
                  || navigator.userAgent.match(/iPhone/i)
                  || navigator.userAgent.match(/iPad/i)
                  || navigator.userAgent.match(/iPod/i)
                  || navigator.userAgent.match(/BlackBerry/i)
                  || navigator.userAgent.match(/Windows Phone/i)
                  ){ return true; } else { return false; }
                  })(),
              calendar: {
                "m0" : "<xsl:value-of select="key('msg','msg_m0')"/>",
                "m1" : "<xsl:value-of select="key('msg','msg_m1')"/>",
                "m2" : "<xsl:value-of select="key('msg','msg_m2')"/>",
                "m3" : "<xsl:value-of select="key('msg','msg_m3')"/>",
                "m4" : "<xsl:value-of select="key('msg','msg_m4')"/>",
                "m5" : "<xsl:value-of select="key('msg','msg_m5')"/>",
                "m6" : "<xsl:value-of select="key('msg','msg_m6')"/>",
                "m7" : "<xsl:value-of select="key('msg','msg_m7')"/>",
                "m8" : "<xsl:value-of select="key('msg','msg_m8')"/>",
                "m9" : "<xsl:value-of select="key('msg','msg_m9')"/>",
                "m10" : "<xsl:value-of select="key('msg','msg_m10')"/>",
                "m11" : "<xsl:value-of select="key('msg','msg_m11')"/>",
                "ms0" : "<xsl:value-of select="key('msg','msg_ms0')"/>",
                "ms1" : "<xsl:value-of select="key('msg','msg_ms1')"/>",
                "ms2" : "<xsl:value-of select="key('msg','msg_ms2')"/>",
                "ms3" : "<xsl:value-of select="key('msg','msg_ms3')"/>",
                "ms4" : "<xsl:value-of select="key('msg','msg_ms4')"/>",
                "ms5" : "<xsl:value-of select="key('msg','msg_ms5')"/>",
                "ms6" : "<xsl:value-of select="key('msg','msg_ms6')"/>",
                "ms7" : "<xsl:value-of select="key('msg','msg_ms7')"/>",
                "ms8" : "<xsl:value-of select="key('msg','msg_ms8')"/>",
                "ms9" : "<xsl:value-of select="key('msg','msg_ms9')"/>",
                "ms10" : "<xsl:value-of select="key('msg','msg_ms10')"/>",
                "ms11" : "<xsl:value-of select="key('msg','msg_ms11')"/>",
                "w0" : "<xsl:value-of select="key('msg','msg_w0')"/>",
                "w1" : "<xsl:value-of select="key('msg','msg_w1')"/>",
                "w2" : "<xsl:value-of select="key('msg','msg_w2')"/>",
                "w3" : "<xsl:value-of select="key('msg','msg_w3')"/>",
                "w4" : "<xsl:value-of select="key('msg','msg_w4')"/>",
                "w5" : "<xsl:value-of select="key('msg','msg_w5')"/>",
                "w6" : "<xsl:value-of select="key('msg','msg_w6')"/>",
                "today" : "<xsl:value-of select="key('msg','msg_today')"/>"
              },
              checkUnsaved: <xsl:choose><xsl:when test="/doc/@checkunsaved">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose>,
              user: "<xsl:value-of select="/doc/user/@name"/>",
              version: "<xsl:value-of select="/doc/version/core"/>",
              userId: "<xsl:value-of select="/doc/user/@id"/>",
              product: (function () {
              return "<xsl:value-of select="$binary" />".toString().replace(/(.*\/)/g,"");
              }()) };

              pageInfo.url = pageInfo.host + pageInfo.binary;

              <!--check for tips-->
              <xsl:if test="/doc/tips">
                pageInfo.tips = [<xsl:for-each select="/doc/tips/tip">{
                "name": "<xsl:value-of select="."/>",
                "content": "<xsl:value-of select="key('msg', concat('tip_', .))"/>"}<xsl:if test="position() != last()">,</xsl:if>
              </xsl:for-each>];
              </xsl:if>
              <!--notify_warning-->
              <xsl:choose>
                <xsl:when test="/doc/warning_notify">
                  pageInfo.warning_notify = {
                    msg: "<xsl:value-of select="mgr:fixquote(key('msg', /doc/warning_notify/@name))"/>",
                    timeout: 900000,
                    func: "<xsl:value-of select="/doc/warning_notify/@action"/>"
                  };
                </xsl:when>
                <xsl:when test="/doc/gontfb">
                  pageInfo.warning_notify = {
                    msg: "<xsl:value-of select="mgr:fixquote(key('msg', 'try_new_theme'))"/>",
                    timeout: 90000000,
                    theme: "<xsl:value-of select="/doc/gontfb"/>"
                  };
                </xsl:when>
              </xsl:choose>
                pageInfo.tabPin = [
                  null
                <xsl:for-each select="/doc/mainmenu/node/node">
                  <xsl:if test="@pin">
                   ,{ params: {func:  '<xsl:value-of select="@action"/>'}, sIndex: 0, status: 0, title: '<xsl:value-of select="key('msg', concat('menu_', @name))"/>', pin: true, pinIcon:'class="s16x16 s-icon subtab__text_for_pin m-<xsl:value-of select="parent::node()/@name"/>" <xsl:if test="not(parent::node()/@sprite)">style="background:url(\'<xsl:value-of select="concat($commondir, 'img/m-', parent::node()/@name, '.png')"/>\') left top no-repeat;"</xsl:if>' }
                  </xsl:if>
                </xsl:for-each>
                ];
            </script>
            <!--main js script-->
            <script type="text/javascript" src="{$theme}{$sdeveltheme}app-desktop{$min}.js?v={$ver}&amp;r={$rev}"></script>
            <!--init application-->
            <script type="text/javascript">
              $(document).ready(function(){
                App.init();
              var isIE = '\v'=='v';
              if(isIE) { $('body').addClass('ie8');}
              });
            </script>
            <link id="favicon" rel="shortcut icon" href="{/doc/@theme}{$localdir}{/doc/@favicon}" type="image/gif"/>
            <!--insert from branding-->
            <xsl:value-of select="/doc/addon/head/text()" disable-output-escaping="yes"/>
          </head>
          <body class="active-menu theme-orion {$developermode} b-body b-body_page_desktop" id="theme-orion">
            <div id="main-wrapper">
              <xsl:if test="/doc/@forcehint">
                <xsl:attribute name="class">force-hint-flag</xsl:attribute>
              </xsl:if>
              <div class="i-form-wr">
                <div class="i-list-wr">
                  <div class="i-report-wr">
              <div id="overlay" class="hide"></div>
              <div id="modal_overlay"></div>
              <div id="hint" class="b-hint"><div id="hint-inner" class="b-hint__inner"></div></div>
              <div id="edit-filed-in-list"></div>
              <div id="context-menu-icon"></div>
              <div id="context-menu-wrapper"></div>
              <!-- Layer calendar -->
              <div id="calendar-y" class="cl-ym-y" unselectable="on"></div>
              <div id="calendar-m" class="cl-ym-m" unselectable="on"></div>
              <div id="calendar" class="cl">
                <div id="calendar-cell" class="cl-cell"></div>
              </div>
            <div id="wrapper">
              <div id="top_panel">
              <!--logo-->
              <div id="logo">
                  <xsl:variable name="logolink" select="/doc/@logolink"/>
                  <xsl:choose>
                    <xsl:when test="$logolink != ''">
                      <a href="{$logolink}" target="_blank">
                        <div class="b-logo" style="background-image: url({$theme}{$localdir}{$logo})"></div>
                      </a>
                    </xsl:when>
                    <xsl:otherwise>
                      <div class="b-logo" style="background-image: url({$theme}{$localdir}{$logo})"></div>
                    </xsl:otherwise>
                  </xsl:choose>
                </div>
                <div class="b-notify-bar">
                  <div id="notify" class="b-notify-bar__item"></div>
                  <div id="notify-banner-list" class="b-notify-banner__list"></div>
                  <xsl:if test="/doc/@globalindex">
                  <div class="b-notify-bar__item">
                    <input class="b-input b-input_type_search i-gsearch__input" type="text" name="gsearch" placeholder="{key('msg', 'msg_search')}"/>
                    <a href="#" class="b-gsearch__close i-gsearch__close"></a>
                    <div class="b-gsearch i-gsearch">
                    </div>
                  </div>
                  </xsl:if>
                </div>

                <xsl:variable name="msgtrial">
                  <xsl:variable name="txt">
                    <xsl:value-of select="key('msg', 'msg_trial')"/>
                  </xsl:variable>
                  <xsl:call-template name="replace">
                    <xsl:with-param name="input" select="$txt"/>
                    <xsl:with-param name="from" select="'__value__'"/>
                    <xsl:with-param name="to" select="/doc/trial"/>
                  </xsl:call-template>
                </xsl:variable>

                <xsl:variable name="update_expired">
                  <xsl:variable name="txt">
                    <xsl:value-of select="key('msg', 'msg_update_expired')"/>
                  </xsl:variable>
                  <xsl:call-template name="replace">
                    <xsl:with-param name="input" select="$txt"/>
                    <xsl:with-param name="from" select="'__value__'"/>
                    <xsl:with-param name="to" select="/doc/update_expired"/>
                  </xsl:call-template>
                </xsl:variable>

                <!--settings links-->
                <ul class="inline-menu b-top-links" id="topLinks">
                  <xsl:if test="/doc/trial">
                    <li class=" b-top-links__item  b-top-links__item_trial">
                      <xsl:value-of select="$msgtrial"/>. <a href="?func=licenseorder&amp;commercial=on"><xsl:value-of select="key('msg', 'msg_license_link')"/></a>
                    </li>
                  </xsl:if>
                  <xsl:if test="/doc/update_expired">
                    <li class=" b-top-links__item  b-top-links__item_trial">
                      <xsl:value-of select="$update_expired"/>
                    </li>
                  </xsl:if>
                  <xsl:if test="/doc/pricelist_change">
                    <li class="b-top-links__item">
                      <div class="b-ispupdate-link">
                      <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" class="b-ispupdate-link__icon">
                        <path d="M15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5C12.1421 0.5 15.5 3.85786 15.5 8Z" fill="white" stroke="#537393"/>
                        <rect x="7.19995" y="6.40002" width="1.6" height="5.6" rx="0.8" fill="#537393"/>
                        <rect x="7.1272" y="3.56366" width="1.74545" height="1.74545" rx="0.872727" fill="#537393"/>
                      </svg>
                      <a href="?startform={/doc/pricelist_change/@func}" data-url="?func={/doc/pricelist_change/@func}" class="newtab b-ispupdate-link__link">
                        <xsl:value-of select="mgr:fixquote(key('msg', 'pricelist_change'))"/>
                      </a>
                    </div>
                    </li>
                  </xsl:if>
                  <!--alpha version-->
                  <xsl:if test="/doc/version/*[@type='alpha']">
                  <xsl:for-each select="/doc/version/*">
                    <xsl:variable name="mgrname" select="local-name()"/>
                    <xsl:if test="@type= 'alpha'">
                      <li id="version" class="mgr-version b-top-links__item">
                        <span class="version red"><xsl:value-of select="concat($mgrname, ' - ', current())"/></span>
                      </li>
                    </xsl:if>
                  </xsl:for-each>
                  </xsl:if>
                  <!--top menu-->
                  <xsl:if test="count(/doc/topmenu/node) > 0">
                    <li class="b-top-links__item b-top-links__item_is_label">
                      <div class="b-topmenu__label hint" data-hint="{key('msg', concat('hint_', /doc/topmenu/@name))}"><xsl:value-of select="key('msg', /doc/topmenu/@name)"/></div>
                    </li>
                    <li>
                      <xsl:attribute name="class">
                        b-topmenu__link b-top-links__item_user_menu b-top-links__item i-tip-target_st_project
                        <xsl:if test="count(/doc/topmenu/node) > 1">b-top-links__item_user_menu_has_item</xsl:if>
                      </xsl:attribute>
                      <xsl:variable name="activeNode" select="/doc/topmenu/node[@active]"/>
                      <xsl:call-template name="icon">
                        <xsl:with-param name="elem" select="$activeNode"/>
                      </xsl:call-template>
                      <span class="b-user-menu__header"><xsl:value-of select="key('msg', $activeNode/@name)"/></span>
                      <div class="triangledown"></div>
                      <div class="b-user-menu__make-up-helper-1"></div>
                      <div class="b-user-menu__make-up-helper-2"></div>
                      <ul class="b-user-menu">
                        <xsl:for-each select="/doc/topmenu/node">
                          <xsl:sort select="text()" data-type="text" order="descending"/>
                          <xsl:if test="not(./@active)">
                            <li class="b-user-menu__item">
                              <xsl:call-template name="icon">
                                <xsl:with-param name="elem" select="current()"/>
                              </xsl:call-template>
                              <a href="{$host}{$binary}?func={./@action}&amp;elid={./@key}&amp;newwindow=yes"><xsl:value-of select="key('msg', ./@name)"/></a>
                            </li>
                          </xsl:if>
                        </xsl:for-each>
                      </ul>
                    </li>

                  </xsl:if>
                  <!--balance-->
                  <xsl:if test="/doc/balance">
                    <li class="b-top-links__item b-top-links__item_is_label">
                      <div class="b-topmenu__label"><xsl:value-of select="key('msg', 'balance')"/></div>
                    </li>
                    <xsl:choose>
                      <xsl:when test="/doc/balance/@func != ''">
                        <li class="b-top-links__item m-item b-top-links__item_user_menu">
                          <a id="balance-show-box" href="?startform={/doc/balance/@func}" data-url="?func={/doc/balance/@func}" class="newtab" data-mn="balance" data-fn="desktop"><xsl:value-of select="/doc/balance"/></a>
                        </li>
                      </xsl:when>
                      <xsl:otherwise>
                        <li class="b-top-links__item b-top-links__item_user_menu">
                          <p id="balance-show-box" data-mn="balance" data-fn="desktop"><xsl:value-of select="/doc/balance"/></p>
                        </li>
                      </xsl:otherwise>
                    </xsl:choose>
                  </xsl:if>
                  <!-- menu -->
                  <xsl:variable name="cpset_hint" select="key('msg', 'msg_cpset')"/>
                  <xsl:variable name="help_hint" select="key('msg', 'msg_help')"/>
                  <xsl:variable name="logout_hint" select="key('msg', 'msg_logout')"/>
                  <li class="b-top-links__item b-top-links__item_user_menu b-top-links__item_user_menu_has_item">

                    <xsl:variable name="pathcount" select="count(/doc/path)"/>
                    <xsl:if test="$pathcount > 1 and position() = 1">
                      <xsl:attribute name="class">b-top-links__item b-top-links__item_user_menu i-tip-target_st_back_user b-top-links__item_user_menu_has_item</xsl:attribute>
                    </xsl:if>

                    <xsl:variable name="curuser" select="/doc/path[last()]"/>
                    <xsl:variable name="displayname" select="$curuser/@name"/>
                    <xsl:variable name="level" select="$curuser/@level"/>
                    <xsl:choose>
                      <xsl:when test="$curuser/@sprite">
                        <div class="lv-{$level} s16x16 s-icon"></div>
                      </xsl:when>
                      <xsl:otherwise>
                        <div class="lv-{$level} s16x16 s-icon" style="background:url('/manimg/common/img/lv-{$level}.png') left top no-repeat;"></div>
                      </xsl:otherwise>
                    </xsl:choose>
                    <span class="b-user-menu__header"><xsl:value-of select="$displayname"/></span>
                    <div class="triangledown"></div>
                    <div class="b-user-menu__make-up-helper-1"></div>
                    <div class="b-user-menu__make-up-helper-2"></div>
                    <ul class="b-user-menu">
                      <xsl:call-template name="path"></xsl:call-template>
                      <xsl:if test="/doc/mainmenu/node/node[@name='usrparam']">
                        <li class="b-user-menu__item m-item">
                          <div class="s16x16 s-icon m-set"></div>
                          <a href="?startform=usrparam" data-url="?func=usrparam" class="newtab" data-mn="cpset" data-fn="desktop"><xsl:value-of select="key('msg', 'cpset')"/></a>
                        </li>
                      </xsl:if>
                      <xsl:choose>
                        <xsl:when test="count(/doc/usermenu/node) != 0">
                          <xsl:for-each select="/doc/usermenu/node">
                            <li class="b-user-menu__item">
                              <xsl:attribute name="class">
                                <xsl:text>b-user-menu__item </xsl:text>
                                <xsl:if test="@type"><xsl:text>m-item </xsl:text></xsl:if>
                              </xsl:attribute>
                              <div class="s16x16 s-icon {@img}"></div>
                              <a href="?func={@action}" data-mn="{@name}" data-fn="desktop">
                                <xsl:value-of select="key('msg', @name)"/>
                              </a>
                            </li>
                          </xsl:for-each>
                        </xsl:when>
                        <xsl:otherwise>
                          <li class="b-user-menu__item">
                            <div class="s16x16 s-icon sb-logout"></div>
                            <a href="?func=logon" data-mn="logout" data-fn="desktop">
                              <xsl:value-of select="key('msg', 'logout')"/>
                            </a>
                          </li>
                        </xsl:otherwise>
                      </xsl:choose>
                    </ul>
                  </li>
                </ul>
                <div id="tabs">
                  <div class="tabs-inner">
                    <div id="dashboard-tab" class="tabs-box">
                      <ul class="nav-tabs">
                        <li class="tab-group active" id="tab0">
                          <span class="subtab">
                            <a href="#" class="switch" id="switch-tab0" data-tabid="tab0"><xsl:value-of select="key('msg', 'dashboard')" /></a>
                          </span>
                        </li>
                      </ul>
                    </div>
                <div id="all-tabs" class="tabs-box i-tip-target_st_tabs_close">
                  <div id="tab-mover-left" class="tab-mover">
                    <div id="tml-triangle"></div>
                  </div>
                  <div id="tab-mover-left-empty"> </div>
                  <div id="tab-mover-right-empty"> </div>

                  <div id="tab-mover-right" class="tab-mover">
                    <div id="tmr-triangle"></div>
                  </div>
                  <div id="tab-cont">
                    <ul class="nav-tabs" id="nav-tabs">
                      <li class="tab-group" id="add-tab">
                        <span class="subtab">
                          <a href="#"><div class="plus-wrapper"><div class="vert"></div><div class="horz"></div></div></a>
                        </span>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </div>
            <div class="bottom-line"></div>
            <div class="bottom-line-right"></div>
          </div>
          <div id="left" class="opened">

            <div id="mainmenu">

              <div id="wrapper-mainmenu">
                <div id="cbutton"><a href="javascript:void(0)"></a></div>
                <div id="hidden-cbutton"></div>
                <div id="topBarWrapper">
                  <div id="m-choose">
                    <xsl:variable name="mbarall"><xsl:value-of select="key('msg', 'hint_mbarall')"/></xsl:variable>
                    <xsl:variable name="mbarfav"><xsl:value-of select="key('msg', 'hint_mbarfavorite')"/></xsl:variable>
                    <xsl:variable name="mbarpop"><xsl:value-of select="key('msg', 'hint_mbarpopular')"/></xsl:variable>
                    <xsl:variable name="plus"><xsl:value-of select="key('msg', 'hint_mbarshow')"/></xsl:variable>
                    <xsl:variable name="minus"><xsl:value-of select="key('msg', 'hint_mbarhide')"/></xsl:variable>
                    <xsl:variable name="pin"><xsl:value-of select="key('msg', 'hint_mfixmenu')"/></xsl:variable>
                    <xsl:variable name="unpin"><xsl:value-of select="key('msg', 'hint_mautohide')"/></xsl:variable>
                    <div class="m-choose-left" id="mbar">
                      <a href="javascript:void(0)" id="all"  class="menev hint listened-elem" data-hint="{$mbarall}"><div class="s-icon s16x16 mbar-all"></div></a>
                      <a href="javascript:void(0)" id="favorite" class="menev hint listened-elem" data-hint="{$mbarfav}"><div class="s-icon s16x16 mbar-favorite"></div></a>
                      <a href="javascript:void(0)" id="popular" class="menev hint listened-elem" data-hint="{$mbarpop}"><div class="s-icon s16x16 mbar-popular"></div></a>
                    </div>
                    <!--<div id="menu-fix-btn">
                    <a href="javascript:void(0)" id="mfb"></a>
                  </div>-->
                    <div class="m-choose-right">
                      <a href="javascript:void(0)" id="plus" class="menev hint listened-elem" data-hint="{$plus}">
                        <div class="s-icon s16x16 mbar-showall"></div>
                      </a>
                      <a href="javascript:void(0)" id="minus" class="menev hint listened-elem" data-hint="{$minus}">
                        <div class="s-icon s16x16 mbar-hideall"></div>
                      </a>
                      <a href="javascript:void(0)" id="mfb" class="hint listened-elem i-tip-target_st_mbar_pin" data-hint-open="{$unpin}" data-hint-closed="{$pin}">
                        <div class="s-icon s16x16 mbar-pin listened-elem"></div>
                      </a>
                    </div>
                  </div>
                  <div id="m-search-wrapper">
                    <input type="text" id="m-search" placeholder="Ctrl + Shift + M" autocomplete="off" class="default-text b-input"/>
                    <div id="close-search" class="not_active">
                      <a href="#"><div class="b-search-close"></div></a>
                    </div>
                  </div>
                </div>
                <div id="menu-items-wr">
                  <div id="menu-items">
                    <div id="h69"></div>
                    <xsl:if test="/doc/@developer_mode">
                      <div class="menu_settings">
                        <a href="#" class="devel-link-add--menu devel-link-add listened-elem"></a>
                      </div>
                    </xsl:if>

                    <xsl:apply-templates select="/doc/mainmenu" />
                    <xsl:apply-templates select="/doc/copyright" />
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="with-menu" id="text"></div>
          <div id="content" class="b-content">
            <div id="wr-content" class="b-content__wr">
            </div>
          </div>
        </div>
        <div id="modal" class="modal">
          <div id="modal_content">
            <div class="b-modal__inner">
              <div class="b-alert__icon b-alert__icon_for_group">
                <div class="b-alert__sign">
                  <div class="b-alert__sign-top"></div>
                  <div class="b-alert__sign-body"></div>
                  <div class="b-alert__sign-empty"></div>
                  <div class="b-alert__sign-dot"></div>
                </div>
              </div>
              <div id="modal_message" class="modal_message">Confirm message here.</div>
            </div>
            <div id="modal_form"></div>
            <div id="modal_default_buttons">
              <div id="modal_data"></div>
              <div class="l-buttons l-buttons_for_form">
                <div class="b-button b-button_style_ok" id="modal_ok" tabindex="0">
                  <xsl:value-of select="$msg_ok"/>
                </div>
                <div class="b-button" id="modal_cancel" tabindex="0">
                  <xsl:value-of select="$msg_cancel"/>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="modal_alert" class="modal">
          <div id="modal_alert_inner">
            <div id="modal_alert_message" class="modal_message">Alert message here.</div>
            <div class="modal_default_buttons">
              <div class="l-buttons l-buttons_for_form">
                <div class="button">
                  <div class="b-button" id="modal_alert_ok" tabindex="0">
                    <xsl:value-of select="$msg_ok"/>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="b-modal-mistake" id="modal_mistake">
          <div class="b-modal-mistake__inner">
            <div class="b-modal-mistake__form">
              <div class="b-modal-mistake__introduce"><xsl:value-of select="key('msg', 'msg_mistake')"/></div>
              <div class="b-modal-mistake__input-wrapper">
                <input type="text" class="b-input b-modal-mistake__input" id="modal_mistake_input" readonly="readonly"/>
              </div>
              <div class="b-modal-mistake__textarea-wrappper">
                <textarea class="b-textarea b-modal-mistake__textarea" id="modal_mistake_textarea">
                </textarea>
              </div>
              <div class="b-modal-mistake__checkbox-wrapper b-checkbox__wrapper_for_confirmbox checkbox">
                <div class="b-checkbox">
                  <div class="b-checkbox__control checked force-hint" data-tabid="mistakebox" tabindex="0" data-id="reportmistakebox"></div>
                </div>
                <div class="l-label__wrapper l-label__wrapper_for_checkbox">
                  <div class="b-label__visible b-label__visible_for_checkbox" data-tabid="mistakebox" data-id="reportmistakebox"><xsl:value-of select="key('msg', 'msg_mistake_report')"/></div>
                  <div class="b-label__invisible b-label__invisible_for_checkbox"><xsl:value-of select="key('msg', 'msg_mistake_report')"/></div>
                  <div class="b-label__line-dotted b-label__line-dotted_for_checkbox"></div>
                </div>
                <input type="hidden" value="on" data-handler-val="" id="reportmistakebox" name="reportmistakebox" data-type="checkbox" data-tabid="mistakebox"/>
              </div>
                  <div class="l-buttons l-buttons_for_form">
                    <div class="b-button b-button_style_ok" id="modal_mistake_ok" tabindex="0">
                      <xsl:value-of select="$msg_ok"/>
                    </div>
                    <div class="b-button" id="modal_mistake_cancel" tabindex="0">
                      <xsl:value-of select="$msg_cancel"/>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div id="inspector_form">
              <div class="inspector-control">
                <a href="#" class="inspector-close inspector-button">
                  <img src="/manimg/orion/img/tab_close.png" width="11" height="11"/>
                </a>
                <a href="#" class="inspector-collapse inspector-button"><div class="s-icon s16x16 mbar-hideall"></div></a></div>
              <div class="inspector-content" id="inspector-content">
              </div>
            </div>
            <div id="temp-form">

            </div>
              <div class="psevdo-hint"></div>
              <div id="rbin"></div>
              <div id="error-log" style="display: none;"></div>
            </div><!--main-wrapper end-->
            </div><!--main-wrapper end-->
            </div><!--main-wrapper end-->
            </div><!--main-wrapper end-->
            <div id="b-overlay" class="b-overlay_active_false b-overlay"> </div>
            <div id="b-progressbar" class="b-progressbar">
              <div class="b-progressbar__outer">
                <div class="b-progressbar__inner">
                  <div class="b-progressbar__comment"><xsl:value-of select="key('msg', 'msg_server_rebooting')"/></div>
                  <div class="b-progressbar__loader-wr">
                    <div class="b-progressbar__loader b-progressbar__loader_type_animate"></div>
                  </div>
                </div>
              </div>
            </div>
            <div id="notify-banner-wrapper" class="b-notify-banner__wrapper"></div>
            <script type="text/javascript" async="async" src="https://www.google.com/jsapi"></script>
            <xsl:value-of select="/doc/addon/body/text()" disable-output-escaping="yes"/>

          </body>
        </html>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <xsl:template name="path">
    <xsl:variable name="pathcount" select="count(/doc/path)"/>
    <xsl:for-each select="/doc/path">
      <xsl:sort select="position()" data-type="number" order="descending"/>
      <xsl:variable name="level" select="@level"/>
      <xsl:variable name="hintlevel" select="key('msg', 'msg_chlevel')"/>
        <!--<xsl:if test="$pathcount > 1 and position() = 1">
          <xsl:attribute name="class">users levels b-top-links__item i-tip-target_st_back_user</xsl:attribute>
        </xsl:if>-->
        <xsl:if test="position() != 1">
          <li class="b-user-menu__item b-user-menu__item_path_yes">
            <xsl:choose>
              <xsl:when test="@sprite">
                <div class="lv-{$level} s16x16 s-icon"></div>
              </xsl:when>
              <xsl:otherwise>
                <div class="lv-{$level} s16x16 s-icon" style="background:url('/manimg/common/img/lv-{$level}.png') left top no-repeat;"></div>
              </xsl:otherwise>
            </xsl:choose>
            <xsl:choose>
              <xsl:when test="@url">
                <span>
                  <a href="{@url}">
                    <xsl:value-of select="key('msg', 'msg_back_to')"/><xsl:text> </xsl:text><xsl:value-of select="@name"/>
                  </a>
                </span>
              </xsl:when>
              <xsl:otherwise>
                <span class="m-item">
                  <a href="#" data-url="?func=chlevel&amp;lp={position() - 1}">
                    <xsl:value-of select="key('msg', 'msg_back_to')"/><xsl:text> </xsl:text><xsl:value-of select="@name"/>
                  </a>
                </span>
              </xsl:otherwise>
            </xsl:choose>
          </li>
        </xsl:if>
    </xsl:for-each>
  </xsl:template>

  <xsl:template match="mainmenu">
    <xsl:apply-templates select="node" />
  </xsl:template>

  <xsl:template match="node">

    <ul id="{@name}" class="group collapsed" data-group="{@name}">
      <xsl:if test="position() = 1">
        <xsl:attribute name="class">group collapsed i-tip-target_st_tabs_open</xsl:attribute>
      </xsl:if>
      <xsl:if test="not(@bigsprite)"><xsl:attribute name="data-img">yes</xsl:attribute></xsl:if>
      <li class="b-group__li">
        <!--<xsl:value-of select="@name"/>-->
        <div class="s-icon s16x16 m-{@name}">
          <xsl:if test="not(@sprite)">
            <xsl:attribute name="style">background:url("<xsl:value-of select="concat($commondir, 'img/m-', @name, '.png')"/>") left top no-repeat;</xsl:attribute>
          </xsl:if>
        </div>
        <!--<img src="{$commondir}img/m-{@name}.png" width="16" height="16"/>-->
        <a href="javascript:void(0)" class="h-group color1-clr listened-elem" data-group="{@name}">
          <span class="b-hgroup__inner" data-mn="menu_{@name}" data-fn="desktop">
            <xsl:value-of select="key('msg', concat('menu_', current()/@name))"/>
          </span>
        </a>

        <ul id="p-{@name}" class="{@name} collapsible" data-group="{@name}">
          <xsl:if test="not(@bigsprite)"><xsl:attribute name="data-img">yes</xsl:attribute></xsl:if>
        <xsl:apply-templates select="node" />
        </ul>
      </li>
    </ul>

  </xsl:template>

  <xsl:template match="node/node">
    <xsl:variable name="classes">
    <xsl:choose>
      <xsl:when test="@popular">
        <xsl:text>popular </xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text>unpopular </xsl:text>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:choose>
      <xsl:when test="@favorite">
        <xsl:text>favorite </xsl:text>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text>unfavorite </xsl:text>
      </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="name">
      <xsl:variable name="txt">
        <xsl:value-of select="@name"/>
      </xsl:variable>
      <xsl:call-template name="replace">
        <xsl:with-param name="input" select="$txt"/>
        <xsl:with-param name="from" select="'.'"/>
        <xsl:with-param name="to" select="'_'"/>
      </xsl:call-template>
    </xsl:variable>

    <li class="l-{$name} {$classes} m-item"  id="l-{$name}">
      <xsl:if test="/doc/@developer_mode">
        <a href="#" class="devel-link-settings--menu devel-link-settings listened-elem" data-elid="{@action}"></a>
      </xsl:if>
    <!--<xsl:value-of select="@name"/>
    <xsl:call-template name="unit"/>-->
    <xsl:variable name="link">
      <xsl:choose>
        <xsl:when test="@action">
          <xsl:choose>
            <xsl:when test="@type='list'">
              <xsl:value-of select="concat('?startpage=', @action)"/>
            </xsl:when>
            <xsl:when test="@type='form'">
              <xsl:value-of select="concat('?startform=', @action)"/>
            </xsl:when>
            <xsl:when test="@type='report'">
              <xsl:value-of select="concat('?startform=', @action)"/>
            </xsl:when>
            <xsl:when test="@type='window'">
              <xsl:value-of select="concat('?func=', @action, '&amp;newwindow=yes')" disable-output-escaping="yes"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:value-of select="concat('?func=', @action)"/>
            </xsl:otherwise>
          </xsl:choose>

        </xsl:when>
        <xsl:when test="@function">
          <xsl:value-of select="@function" disable-output-escaping="yes"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:text> </xsl:text>
        </xsl:otherwise>
        </xsl:choose>
    </xsl:variable>
    <xsl:variable name="url" select="concat('?func=', @action)"/>

    <xsl:choose>
      <xsl:when test="@function">
        <!-- hack for ipv6 link -->
        <xsl:text disable-output-escaping="yes">&lt;a href="</xsl:text>
          <xsl:value-of select="$link" disable-output-escaping="yes"/>
        <xsl:text disable-output-escaping="yes">" </xsl:text>
          data-fn="desktop" data-mn="menu_<xsl:value-of select="@name"/>" 
          class="textlink listened-elem i-menu-link wohan" 
          target="_blank" 
        <xsl:text disable-output-escaping="yes">&gt;</xsl:text>
        <xsl:value-of select="/doc/messages/msg[@name = concat('menu_', current()/@name)]"/>
        <xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
        <span class="more">...</span>
      </xsl:when>
      <xsl:otherwise>
      <!-- usual case -->
        <a href="{$link}" data-url="{$url}" data-mn="menu_{@name}" data-fn="desktop">
          <xsl:attribute name="class">textlink listened-elem i-menu-link<xsl:if test="@function or @type='window'"> wohan</xsl:if></xsl:attribute>
          <xsl:if test="@function or @type='window'"><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="href"><xsl:value-of select="$link"/></xsl:attribute><xsl:attribute name="data-url"></xsl:attribute></xsl:if>
          <xsl:value-of select="/doc/messages/msg[@name = concat('menu_', current()/@name)]" />
        </a>

        <span class="more">...</span>

        <a data-url="{$url}" href="{$link}">
          <xsl:attribute name="class">newtab listened-elem i-menu-link<xsl:if test="@function"> wohan</xsl:if></xsl:attribute>
          <xsl:if test="@function"><xsl:attribute name="target">_blank</xsl:attribute><xsl:attribute name="href"><xsl:value-of select="$link"/></xsl:attribute><xsl:attribute name="data-url"></xsl:attribute></xsl:if>
          <span class="listened-elem m-item-newtab-icon hint" data-hint="{key('msg', 'hint_newtab')}" ></span>
        </a>

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

  </xsl:template>


  <xsl:template match="copyright">

    <div id="copyright" class="b-copyright">
      <div class="b-product">
        <xsl:value-of select="/doc/product"/>
      </div>

      <xsl:if test="/doc/pricelist_change">
        <xsl:variable name="pricelist" select="/doc/pricelist_change"></xsl:variable>
        <div class="m-item b-dragon">
            <a class="b-pricelist-change listened-elem" href="?startform={$pricelist/@func}" data-url="?func={$pricelist/@func}"><xsl:value-of select="key('msg', $pricelist/@name)"/></a>
        </div>
      </xsl:if>

      <xsl:if test="/doc/@binary = '/ispmgr' or /doc/@binary = '/manager/ispmgr'">
        <ispui-button class="b-dragon" theme="accent" onclick="location.href='?theme=dragon'"><xsl:value-of select="key('msg', 'try_new_theme')"/></ispui-button>
      </xsl:if>

      <a href="{@href}" target="blank" class="listened-elem">
        <xsl:value-of select="." disable-output-escaping="yes" />
      </a>
    </div>
  </xsl:template>

  <xsl:template name="unit">
    <a href="#">
      <xsl:value-of select="key('msg', concat('menu_', current()/@name))" />
    </a>
  </xsl:template>

  <!-- replace function -->
  <xsl:template name="replace">
    <xsl:param name="input"/>
    <xsl:param name="from"/>
    <xsl:param name="to"/>
    <xsl:choose>
      <xsl:when test="contains($input, $from)">
        <xsl:value-of select="substring-before($input, $from)"/>
        <xsl:value-of select="$to"/>
        <xsl:call-template name="replace">
          <xsl:with-param name="input" select="substring-after($input, $from)"/>
          <xsl:with-param name="from" select="$from"/>
          <xsl:with-param name="to" select="$to"/>
        </xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$input"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>