Your IP : 3.14.3.70
<?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:import href="extfunc.xsl"/><xsl:output method="xml" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/><xsl:strip-space elements="*"/><xsl:variable name="meta" select="/doc/metadata"/><xsl:variable name="theme" select="/doc/@theme"/><xsl:variable name="messages" select="/doc/messages"/><xsl:key name="msg" match="/doc/messages/msg" use="@name"/><xsl:variable name="commondir">/manimg/common/</xsl:variable><xsl:variable name="edit"><xsl:choose><xsl:when test="/doc/allowmapedit = 'yes'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:variable><xsl:template match="/"><xsl:choose><!--Fatal error--><xsl:when test="/doc/error and not(/doc/tparams/sfrom)"><xsl:call-template name="fatalerror"></xsl:call-template></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="$meta/@type = 'map'"><!-- work json -->{ "type" : "map","title" : "<xsl:value-of select="mgr:fixquote(key('msg', 'title'))"/>","theme" : "<xsl:value-of select="$theme"/>","func" : "<xsl:value-of select="/doc/@func"/>","urlparam" : "<xsl:call-template name="params"/>","urlObj" : <xsl:call-template name="paramsobject"/>,"map" : {"objects" : {<xsl:apply-templates select="$meta/map/*"/>},"layers" : [<xsl:apply-templates select="/doc/layer"/>],"width" : "<xsl:value-of select="/doc/layer/@width"/>","height" : "<xsl:value-of select="/doc/layer/@height"/>","scale" : "<xsl:value-of select="/doc/layer/@scale"/>","views" : [<xsl:apply-templates select="$meta/views/*"/>],"edit" : <xsl:value-of select="$edit"/>,"action" : "<xsl:apply-templates select="$meta/map/@saveaction"/>","msg" : {"save" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_save'))"/>","unsave" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_unsaved'))"/>","width" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_width'))"/>","height" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_height'))"/>","top": "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_top'))"/>","left" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_left'))"/>"}}<xsl:if test="$meta/toolbar/toolgrp/toolbtn[@type='back']">,"backBtn" : true</xsl:if>,"btng" : [<xsl:apply-templates select="$meta/toolbar/toolgrp"/>],"btnview" : "<xsl:value-of select="$meta/toolbar/@view"/>"}</xsl:when><xsl:when test="$meta/@type = 'rack'">{ "type" : "rack","title" : "<xsl:value-of select="mgr:fixquote(key('msg', 'title'))"/>","theme" : "<xsl:value-of select="$theme"/>","func" : "<xsl:value-of select="/doc/@func"/>","urlparam" : "<xsl:call-template name="params"/>","urlObj" : <xsl:call-template name="paramsobject"/>,"rack" : {"size" : "<xsl:value-of select="/doc/rack/@size"/>","type" : "rack","elems" : [<xsl:call-template name="rack-node"/>]<xsl:call-template name="node-unplaced"/>,"action" : "<xsl:apply-templates select="$meta/rack/@saveaction"/>","views" : [<xsl:apply-templates select="$meta/views/*"/>],"viewsBound" : {<xsl:for-each select="$meta/views/*">"<xsl:value-of select="@name"/>" : {"boundleft" : "<xsl:value-of select="@boundleft"/>","boundright" : "<xsl:value-of select="@boundright"/>"}<xsl:if test="position() != last()">,</xsl:if> </xsl:for-each>},"msg" : {"save" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_save'))"/>","unsave" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_unsaved'))"/>","rack_name" : "<xsl:value-of select="mgr:fixquote(/doc/title)"/>"}}<xsl:if test="$meta/toolbar/toolgrp/toolbtn[@type='back']">,"backBtn" : true</xsl:if>,"btng" : [<xsl:apply-templates select="$meta/toolbar/toolgrp"/>],"btnview" : "<xsl:value-of select="$meta/toolbar/@view"/>"}</xsl:when></xsl:choose></xsl:otherwise></xsl:choose></xsl:template><xsl:template name="rack-node"><xsl:apply-templates select="/doc/rack/node"/></xsl:template><xsl:template name="node-unplaced">,"unplaced": [<xsl:apply-templates select="/doc/rack/unplaced/node"/>]</xsl:template><xsl:template match="node"><xsl:variable name="this" select="."/>{"props" : [ {}<xsl:if test="$meta/rack/object[@type = current()/type]/prop"><xsl:for-each select="$meta/rack/object[@type = current()/type]/prop"><xsl:if test="$this/*[local-name() = current()/@name]">,{"name" : "<xsl:value-of select="@name"/>","value" : "<xsl:value-of select="mgr:fixquote($this/*[local-name() = current()/@name])"/>","hint" : "<xsl:value-of select="mgr:fixquote(key('msg', concat('hint','_', current()/@name)))"/> <xsl:value-of select="mgr:fixquote($this/*[local-name() = current()/@name])"/>"<xsl:if test="@color">,"color" : "<xsl:value-of select="@color"/>"</xsl:if>}</xsl:if></xsl:for-each></xsl:if>],"views" : [<xsl:for-each select="$meta/views/view"><xsl:choose><xsl:when test="$this/*[local-name() = current()/@name]">{ "n" : "<xsl:value-of select="@name"/>","v" : "<xsl:value-of select="$this/*[local-name() = current()/@name]"/>" }</xsl:when><xsl:otherwise>{ "n" : "<xsl:value-of select="@name"/>","v" : "" }</xsl:otherwise></xsl:choose><xsl:if test="position() != last()">,</xsl:if></xsl:for-each>],<xsl:for-each select="current()/*"><xsl:choose><xsl:when test="local-name() = 'embed'">"volume" : "<xsl:value-of select="@size"/>","embed" : [<xsl:apply-templates select="./*"/>]<xsl:if test="position() != last()">,</xsl:if></xsl:when><xsl:otherwise>"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="mgr:fixquote(.)"/>"<xsl:if test="position() != last()">,</xsl:if></xsl:otherwise></xsl:choose></xsl:for-each><xsl:if test="$meta/rack/object[@type = current()/type]/hint">,"hintfunc" : "<xsl:value-of select="$meta/rack/object[@type = current()/type]/hint/@func"/>"</xsl:if><xsl:if test="$meta/rack/object[@type = current()/type]/@color">,"color" : "<xsl:value-of select="$meta/rack/object[@type = current()/type]/@color"/>"</xsl:if>}<xsl:if test="position() != last()">,</xsl:if></xsl:template><!--toolgrp--><xsl:template match="toolgrp">{ "name" : "<xsl:value-of select="@name"/>","btn" : [<xsl:apply-templates select="toolbtn"/>]}<xsl:if test="position() != last()">,</xsl:if></xsl:template><!-- toolbar--><xsl:template match="toolgrp/toolbtn"><xsl:variable name="name" select="@name"/><xsl:choose><xsl:when test="$name != 'filter'">{ "name" : "<xsl:value-of select="mgr:fixquote(key('msg', concat('short_', $name)))"/>","imgSrc" : "<xsl:choose> <xsl:when test="@img"><xsl:value-of select="concat($commondir, 'img/', @img, '.png')"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($commondir, 'img/', 'e.gif')"/></xsl:otherwise></xsl:choose>","img" : "<xsl:value-of select="@img"/>","style" : "<xsl:if test="not(@sprite)">style = 'background : url(<xsl:value-of select="concat($commondir, 'img/', @img, '.png')"/>) left top no-repeat';</xsl:if>","func" : "<xsl:value-of select="@func"/>","type" : "<xsl:choose><xsl:when test="local-name() = 'toolsep'">toolsep</xsl:when><xsl:otherwise><xsl:value-of select="@type"/></xsl:otherwise></xsl:choose>","default" : "<xsl:value-of select="@default"/>","hint" : "<xsl:value-of select="mgr:fixquote(key('msg', concat('hint_', $name)))"/>","tClass" : "<xsl:choose><xsl:when test="(@type = 'new' or @type = 'back' or @type = 'list' or @type = 'refresh') and not(show) "> active </xsl:when><xsl:otherwise> notActive </xsl:otherwise></xsl:choose> ","progressbar" : " <xsl:choose><xsl:when test="@progressbar = 'yes'">data-progressbar='yes'</xsl:when><xsl:when test="@progressbar = 'notime'">data-progressbar='notime'</xsl:when></xsl:choose> ","dataType" : "data-type=<xsl:value-of select="@type"/>","tname" : "<xsl:value-of select="$name"/>"<xsl:if test="key('msg', concat('msg_confirm_', $name))">,"confirm" : "<xsl:value-of select="mgr:fixquote(key('msg', concat('msg_confirm_', $name)))"/>"<xsl:if test="key('msg', 'msg_confirm_delimiter')">,"confirm_delimiter" : "<xsl:value-of select="mgr:fixquote(key('msg', 'msg_confirm_delimiter'))"/>"</xsl:if></xsl:if>,"bClass" : "<xsl:choose><xsl:when test="@type = 'back'"> <xsl:value-of select="@type"/> tb-inert </xsl:when><xsl:when test="@type = 'list' or @type = 'new' or @type = 'refresh'"> <xsl:value-of select="@type"/> action tb-inert </xsl:when><xsl:when test="@type = 'group'"> group action tb-group </xsl:when><xsl:when test="@type = 'groupform'"> groupform action tb-group </xsl:when><xsl:when test="@type = 'groupdownload'"> groupdownload group action tb-group</xsl:when><xsl:otherwise> action tb-not-group </xsl:otherwise></xsl:choose><xsl:if test="@default"> default </xsl:if><xsl:if test="current()/hide"> <xsl:apply-templates select="current()/hide"/> </xsl:if><xsl:if test="current()/remove"> <xsl:apply-templates select="current()/remove"/> </xsl:if><xsl:if test="current()/show"><xsl:apply-templates select="current()/show"/></xsl:if><xsl:if test="show"> toolbtnShow </xsl:if><xsl:if test="@sametab"> updatetab </xsl:if>","id" : "<xsl:value-of select="generate-id()"/>"}</xsl:when><xsl:otherwise>{}</xsl:otherwise></xsl:choose><xsl:if test="position() != last()">,</xsl:if></xsl:template><!-- objects --><xsl:template match="map/object">"<xsl:value-of select="@name"/>" : {<xsl:for-each select="@*">"edit" : <xsl:value-of select="$edit"/>,"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="."/>"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each><xsl:if test="count(./*) > 0">,"innerObj" : {<xsl:for-each select="./*"><xsl:choose><xsl:when test="@func">"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="@func"/>"</xsl:when><xsl:otherwise>"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="@name"/>"</xsl:otherwise></xsl:choose><xsl:if test="position() != last()">,</xsl:if></xsl:for-each>}</xsl:if>}<xsl:if test="position() != last()">,</xsl:if></xsl:template><!--views--><xsl:template match="views/view">{<xsl:for-each select="@*">"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="."/>"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>,"localName" : "<xsl:value-of select="mgr:fixquote(key('msg', current()/@name))"/>"}<xsl:if test="position() != last()">,</xsl:if></xsl:template><!--layers--><xsl:template match="/doc/layer"><xsl:choose><xsl:when test="layer">{"layers": [<xsl:apply-templates select="layer"/>],"width" : "<xsl:value-of select="@width"/>","height" : "<xsl:value-of select="@height"/>"}</xsl:when><xsl:otherwise>{"name" : "<xsl:value-of select="@name"/>","elems" : [<xsl:for-each select="./*">{"oName" : "<xsl:value-of select="local-name()"/>"<xsl:if test="count(./*) > 0">,</xsl:if><xsl:for-each select="./*">"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="."/>"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>}<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>]}<xsl:if test="position() != last()">,</xsl:if></xsl:otherwise></xsl:choose></xsl:template><xsl:template match="layer"><xsl:choose><xsl:when test="layer">{ "layers": [<xsl:apply-templates select="layer"/>] }</xsl:when><xsl:otherwise>{"name" : "<xsl:value-of select="@name"/>","elems" : [<xsl:for-each select="./*">{"oName" : "<xsl:value-of select="local-name()"/>"<xsl:if test="count(./*) > 0">,</xsl:if><xsl:for-each select="./*">"<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="."/>"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>}<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>]}<xsl:if test="position() != last()">,</xsl:if></xsl:otherwise></xsl:choose></xsl:template><!--Fatal error template--><xsl:template name="fatalerror"><xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><html><head><title>Fatal error</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><link rel="stylesheet" href="/manimg/orion/default/main.css?v=&r=" type="text/css"/></head><body class="b-body"><div id="main-wrapper"><div id="fatal-error-tab1" class="b-fatal-error"><div class="b-fatal-error__round"><div class="b-fatal-error__inner"><div class="b-fatal-error__sign"><div class="-fatal-error__sign-top"><xsl:text> </xsl:text></div><div class="b-fatal-error__sign-body"><xsl:text> </xsl:text></div><div class="b-fatal-error__sign-empty"><xsl:text> </xsl:text></div><div class="b-fatal-error__sign-dot"><xsl:text> </xsl:text></div></div><div class="b-fatal-error__message"><xsl:value-of select="/doc/error/msg"/></div></div></div><div class="b-fatal-error__triangle"></div></div></div></body></html></xsl:template><!-- params as string --><xsl:template name="params"><xsl:for-each select="/doc/tparams/*"><xsl:variable name="name" select="local-name()"/><xsl:if test="$name != 'p_cnt' and $name != 'p_order' and $name != 'p_sort' and $name != 'lang' and $name != 'theme' and $name != 'fdata' and $name != 'fbacktrace' and $name != 'flog' "><xsl:value-of select="local-name()"/>=<xsl:value-of select="mgr:fixquote(.)"/><xsl:if test="position() != last()"><xsl:text disable-output-escaping="yes">&</xsl:text></xsl:if></xsl:if></xsl:for-each><xsl:if test="/doc/allowmapedit = 'yes'"><xsl:text disable-output-escaping="yes">&</xsl:text>allowmapedit=yes</xsl:if></xsl:template><!-- params as object --><xsl:template name="paramsobject">{ "" : ""<xsl:for-each select="/doc/tparams/*"><xsl:variable name="name" select="local-name()"/><xsl:if test="$name != 'p_cnt' and $name != 'p_order' and $name != 'p_sort' and $name != 'lang' and $name != 'theme' and $name != 'fdata' and $name != 'fbacktrace' and $name != 'flog' and $name != 'out'">, "<xsl:value-of select="local-name()"/>" : "<xsl:value-of select="mgr:fixquote(.)"/>"</xsl:if><xsl:if test="/doc/allowmapedit = 'yes'">,"allowmapedit" : "yes"</xsl:if></xsl:for-each>}</xsl:template></xsl:stylesheet>