<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslc="http://xslcomponents.org/TR/WD-xslc">
<xsl:template name="XMLCAdm_Tabs">
<xsl:param name="Action" select="/document/XMLC_Params/XMLC_Action"/>
<Item Name="XMLC_Dashboard" Hint="{/document/Locales/HTTPMonitorAlt}" ImagePath="{$XMLC_PictosPath}button_Monitoring.gif" Caption="{/document/Locales/HTTPMonitorTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_Dashboard</xsl:attribute>
</Item>
<Item Name="XMLC_Stats" Hint="{/document/Locales/StatsAlt}" ImagePath="{$XMLC_PictosPath}button_Stats.gif" Caption="{/document/Locales/StatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_Stats</xsl:attribute>
</Item>
<Item Name="XMLC_CompareStats" ImagePath="{$XMLC_PictosPath}button_CompareStats.gif" Caption="{/document/Locales/CompareStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_CompareStats</xsl:attribute>
</Item>
<xsl:if test="($Action = 'XMLC_PoolStats') or ($Action = 'XMLC_StatsQueries') or ($Action = 'XMLC_ListPerformanceCounter')or ($Action = 'XMLC_StatsXMLModule') or ($Action = 'XMLC_StatsXMLService') or ($Action = 'XMLC_StatsQuery')">
<Item Name="XMLC_PoolStats" Hint="{/document/Locales/PoolStatsAlt}" ImagePath="{$XMLC_PictosPath}button_Stats.gif" Caption="{/document/Locales/PoolStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_PoolStats<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
<Item Name="XMLC_StatsQueries" Hint="{/document/Locales/QueriesStatsAlt}" ImagePath="{$XMLC_PictosPath}Button_StatsQuery.gif" Caption="{/document/Locales/QueriesStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsQueries<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
<Item Name="XMLC_ListPerformanceCounter" Hint="{/document/Locales/PerfMonitorsAlt}" ImagePath="{$XMLC_PictosPath}button_PerformanceCounters.gif" Caption="{/document/Locales/PerfMonitorsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_ListPerformanceCounter<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
<xsl:if test="($Action = 'XMLC_StatsXMLModule') or ($Action = 'XMLC_StatsXMLService') or ($Action = 'XMLC_StatsQuery')">
<Item Name="XMLC_StatsXMLModule" Hint="{/document/Locales/XMLModuleStatsAlt}" ImagePath="{$XMLC_PictosPath}button_StatsXMLModule.gif" Caption="{/document/Locales/XMLModuleStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsXMLModule<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
<xsl:if test="$Action = 'XMLC_StatsXMLService'">
<Item Name="XMLC_StatsXMLService" Hint="{/document/Locales/XMLServiceStatsAlt}" ImagePath="{$XMLC_PictosPath}button_StatsXMLService.gif" Caption="{/document/Locales/XMLServiceStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsXMLService<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
</xsl:if>
<xsl:if test="$Action = 'XMLC_StatsQuery'">
<Item Name="XMLC_StatsQuery" Hint="{/document/Locales/QueryStatsAlt}" ImagePath="{$XMLC_PictosPath}Button_StatsQuery.gif" Caption="{/document/Locales/QueryStatsTabCaption}">
<xsl:attribute name="HRef"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsQuery<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
</Item>
</xsl:if>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="AdmCommonToolbarButtonsLeft">
<xsl:param name="Action" select="/document/XMLC_Params/XMLC_Action"/>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_Dashboard</xsl:attribute>
<img alt="{/document/Locales/HTTPMonitorAlt}" border="0" src="{$XMLC_PictosPath}button_Monitoring.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_Stats</xsl:attribute>
<img alt="{/document/Locales/StatsAlt}" border="0" src="{$XMLC_PictosPath}button_Stats.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_CompareStats</xsl:attribute>
<img alt="{/document/Locales/CompareStatsAlt}" border="0" src="{$XMLC_PictosPath}button_CompareStats.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<ToolbarButton>
<img src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
<xsl:if test="($Action = 'XMLC_PoolStats') or ($Action = 'XMLC_StatsQueries') or ($Action = 'XMLC_ListPerformanceCounter')or ($Action = 'XMLC_StatsXMLModule') or ($Action = 'XMLC_StatsXMLService') or ($Action = 'XMLC_StatsQuery')">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_PoolStats<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/PoolStatsAlt}" border="0" src="{$XMLC_PictosPath}button_Stats.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsQueries<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/QueriesStatsAlt}" border="0" src="{$XMLC_PictosPath}Button_StatsQuery.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_ListPerformanceCounter<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/PerfMonitorsAlt}" border="0" src="{$XMLC_PictosPath}button_PerformanceCounters.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<xsl:if test="($Action = 'XMLC_StatsXMLModule') or ($Action = 'XMLC_StatsXMLService') or ($Action = 'XMLC_StatsQuery')">
<img src="{$XMLC_SkinPath}toolbar_separator.gif"/>
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsXMLModule<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/XMLModuleStatsAlt}" border="0" src="{$XMLC_PictosPath}button_StatsXMLModule.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
<xsl:if test="$Action = 'XMLC_StatsXMLService'">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsXMLService<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/XMLServiceStatsAlt}" border="0" src="{$XMLC_PictosPath}button_StatsXMLService.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:if>
<xsl:if test="$Action = 'XMLC_StatsQuery'">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose>XMLC_StatsQuery<xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/QueryStatsAlt}" border="0" src="{$XMLC_PictosPath}Button_StatsQuery.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:if>
<img src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</xsl:if>
</xsl:if>
<xsl:call-template name="Refresh"/>
<ToolbarButton>
<img src="{$XMLC_SkinPath}toolbar_separator.gif"/>
</ToolbarButton>
</xsl:template>
<xsl:template name="AdmCommonToolbarButtonsRight">
<ToolbarButton>
<xsl:call-template name="ButtonXMLOutputFormat"/>
</ToolbarButton>
</xsl:template>
<xsl:template name="Refresh">
<ToolbarButton>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a>
<xsl:attribute name="href"><xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when><xsl:otherwise>/</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_Action"/><xsl:choose><xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when><xsl:otherwise>?</xsl:otherwise></xsl:choose><xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/></xsl:attribute>
<img alt="{/document/Locales/RefreshAlt}" border="0" src="{$XMLC_PictosPath}button_refresh.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</ToolbarButton>
</xsl:template>
<xsl:template name="ButtonXMLOutputFormat">
<xsl:param name="RefreshURL">
<xsl:value-of select="/document/XMLC_Params/XMLC_ScriptName"/>
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">?XMLC_Action=</xsl:when>
<xsl:otherwise>/</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_Action"/>
<xsl:choose>
<xsl:when test="/document/XMLC_Params/XMLC_UseXMLC_Action = '1'">&amp;</xsl:when>
<xsl:otherwise>?</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="/document/XMLC_Params/XMLC_InputParams"/>
<xsl:if test="/document/XMLC_Params/XMLC_InputParams != ''">&amp;</xsl:if>XMLC_OutputFormat=xml</xsl:param>
<xsl:call-template name="xslc:ToolbarButton">
<xsl:with-param name="Caption">
<a href="{$RefreshURL}">
<img alt="{/document/Locales/XMLOutputFormatAlt}" border="0" src="{$XMLC_PictosPath}button_XMLDocument.gif"/>
</a>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>
