123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cogadmin
- (C) Copyright IBM Corp. 2005, 2017
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:ui="http://developer.cognos.com/schemas/ui/presentation/markup/"
- xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:admui="http://developer.cognos.com/schemas/xts/admui"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes="xsl xts ui uic cm admui xtsext">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
- <!--xsl:key name="parameter" match="/root/config/section/parameter" use="@name"/-->
-
- <admui:variables/>
-
- <xsl:template match="/root">
- <uic:fragment xmlns:uic="http://developer.cognos.com/schemas/uic/presentation/markup/">
- <xsl:variable name="permissions">
- <xsl:value-of select="/root/cm:queryResponse/*/item[1]/queryResult/item/permissions/value"/>
- </xsl:variable>
- <xsl:variable name="storeid">
- <xsl:value-of select="/root/cm:queryResponse/*/item[1]/queryResult/item/storeID/value"/>
- </xsl:variable>
- <xsl:variable name="defaultName">
- <xsl:value-of select="xtsext:urlencode(string(/root/cm:queryResponse/*/item[1]/queryResult/item/defaultName/value))"/>
- </xsl:variable>
- <xsl:variable name="heightOffset">
- <xsl:choose>
- <xsl:when test="$storeid != ''"><xsl:value-of select="-62"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="-40"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <script>
- <xsl:variable name="progressImage">
- <admui:imageURL image="progress.gif" type="cogadmin"/>
- </xsl:variable>
- _THIS_onCadminWindowstateChange = function (evt) {
- if (evt.source != _THIS_)
- switch (evt.payload){
- case "minimized":
- _THIS_.cogadminWindowState = "extended";
- setContentTableHeight ("_THIS_","extended",2);
- break;
- case "normal":
- _THIS_.cogadminWindowState = null;
- setContentTableHeight ("_THIS_","normal",2);
- break;
- default:
- }
- return true;
- }
- regFragEvent(_THIS_,"cogadmin.fragment.windowstate.change",_THIS_onCadminWindowstateChange);
-
- _THIS_onWindowstateChange = function (evt) {
- var winState = evt.payload.newWindowState;
- if (winState == "normal" && _THIS_.cogadminWindowState)
- winState = _THIS_.cogadminWindowState;
-
- setContentTableHeight ("_THIS_",winState,2);
- _THIS_.raiseEvent("cogadmin.fragment.windowstate.change",evt.payload.newWindowState);
- return true;
- }
- regFragEvent(_THIS_,"fragment.windowstate.change",_THIS_onWindowstateChange);
-
- _THIS_adjustFrgSize = function (evt) {
- var winState = _THIS_.cogadminWindowState || _THIS_.windowState;
- setContentTableHeight ("_THIS_",winState,2);
- return true;
- }
- //the reason for the following line is the fragment.addEventListener won't work for fragment.resize event
- _THIS_.onresize = _THIS_adjustFrgSize;
-
- regFragEvent(_THIS_,"fragment.load",_THIS_adjustFrgSize);
- initPopup('<xsl:value-of select="xtsext:javascriptencode(string($progressImage))"/>', '<xts:string id="IDS_ADM_MESSAGE_STOP" encode="javascript"/>');
-
- function closeSettingsDialog() {
- ui_modal_dialog.close();
- raiseReloadEvent(_THIS_);
- }
-
- _THIS_onReloadEvent = function(evt) {
- if (evt.source != _THIS_) {
- removeReloadEventListener(_THIS_, "_THIS_onReloadEvent");
- _THIS_.retrieve();
- }
- }
- addReloadEventListener(_THIS_,"_THIS_onReloadEvent");
-
- </script>
- <xsl:variable name="hasReadPermission" select="contains($permissions, 'read')"/>
- <xsl:variable name="mclass" select="/root/cm:queryResponse/*/item[1]/queryResult/item/objectClass/value"/>
- <xsl:variable name="isRolapDatasource" select ="$mclass='rolapDataSource' or $mclass='rolapVirtualDataSource'"/>
- <xsl:if test="$hasReadPermission and $storeid != '' and not($isRolapDatasource)">
- <!-- construct the url -->
- <xsl:variable name="url" select="concat(/root/configProps/param[@name = 'cps']/property[@name ='gateway']/., '?b_action=xts.run&m=portal/properties_settings.xts&m_class=', $mclass, '&m_path=storeID(%22', $storeid, '%22)&m_obj=storeID(%22', $storeid, '%22)&m_name=', $defaultName, '&backURL=javascript:parent._THIS_callBack();')"/>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr>
- <td align="right">
- <uic:icon>
- <uic:src>
- <admui:imageURL image="action_properties.gif" type="common"/>
- </uic:src>
- <uic:tooltip>
- <xts:string id="IDS_ADM_ACT_SET_PROPERTIES_TOOLTIP"/>
- </uic:tooltip>
- <uic:onclick>ui_modal_dialog.open('<xsl:value-of select="xtsext:javascriptencode(string($url))"/>',false,true,true)</uic:onclick>
- </uic:icon>
- </td>
- </tr>
- </table>
- </xsl:if>
- <xsl:variable name="height">
- <xsl:choose>
- <xsl:when test="$storeid != ''">210px</xsl:when>
- <xsl:otherwise>232px</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <uic:table width="100%" id="_THIS_contentTable">
- <xsl:choose>
- <xsl:when test="$hasReadPermission or $storeid = ''">
- <uic:features>
- <uic:name>table_fragment</uic:name>
- <uic:scrollable/>
- <uic:gridView/>
- <uic:type>group</uic:type>
- <uic:hideTenant>true</uic:hideTenant>
- <ui:tableFeatures/>
- <uic:collapsed>true</uic:collapsed>
- <uic:aria-label>
- <xts:transform name="XMLEncode">
- <xts:string id="IDS_ADM_SET_HEADER">
- <xts:param name="objName"><xsl:value-of select="/root/metadata/*[local-name()='GetMultipleResourcePropertiesResponse']/*[local-name()='Caption']"/></xts:param>
- </xts:string>
- </xts:transform>
- </uic:aria-label>
- </uic:features>
- <uic:header>
- <uic:row>
- <uic:column width="75%">
- <uic:text>
- <xts:string id="IDS_ADM_SET_TABLE_HEADER_NAME"/>
- </uic:text>
- </uic:column>
- <uic:column width="25%">
- <uic:text>
- <xts:string id="IDS_ADM_SET_TABLE_HEADER_VALUE"/>
- </uic:text>
- </uic:column>
- </uic:row>
- </uic:header>
- <uic:body>
-
- <!-- Process each of the possible groups -->
- <xsl:for-each select="/root/config/*">
- <xsl:variable name="section" select="."/>
- <xsl:variable name="groupLabel" select="$section/@label"/>
- <xsl:variable name="groupName" select="$section/@name"/>
- <xsl:variable name="groupPosition" select="position()"/>
- <xsl:variable name="groupDesc" select="$section/@description"/>
- <!-- handle all the properties that belong to a group -->
- <xsl:for-each select="/root/cm:queryResponse/*/item[1]/queryResult/item/*[$section/parameter/@name = local-name()]">
- <xsl:sort select="name" order="ascending" lang="{/root/contentLocale}"/>
- <xsl:variable name="propertyName" select="local-name()"/>
- <xsl:variable name="propertyValue" select="./value"/>
- <xsl:variable name="propertyPosition" select="position()"/>
- <xsl:variable name="propertyDesc" select="$section/parameter[@name = string($propertyName)]/@description"/>
- <xsl:variable name="propertyType" select="@*[local-name()='type']"/>
- <xsl:if test="$groupName != 'advancedSettings' or ($groupName = 'advancedSettings' and count(./value/settings/*) != 0)">
- <xsl:if test="position() = 1">
- <xsl:text disable-output-escaping="yes"><uic:group collapsible="true" collapsed="true" onExpand="alert('on expand function')" onCollapse="alert('on collapse function')"></xsl:text>
- <xsl:call-template name="settingGroup">
- <xsl:with-param name="name" select="$groupName"/>
- <xsl:with-param name="label" select="$groupLabel"/>
- <xsl:with-param name="position" select="$groupPosition"/>
- <xsl:with-param name="desc" select="$groupDesc"/>
- </xsl:call-template>
- </xsl:if>
- <xsl:variable name="name">
- <xsl:choose>
- <xsl:when test="$section/parameter[@name = string($propertyName)]/@label != ''">
- <xsl:value-of select="$section/parameter[@name = string($propertyName)]/@label"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$section/parameter[@name = string($propertyName)]/@name"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- replace the value by its label if found. In general, they are enumeration. -->
- <xsl:variable name="value">
- <xsl:choose>
- <xsl:when test="$section/parameter[@name = string($propertyName) and @ns !='']/enum[concat(../@ns,@value) = string($propertyValue)]/@label != ''">
- <xsl:value-of select="$section/parameter[@name = string($propertyName)]/enum[concat(../@ns,@value) = string($propertyValue)]/@label"/>
- </xsl:when>
- <xsl:when test="$section/parameter[@name = string($propertyName)]/enum[@value = string($propertyValue)]/@label != ''">
- <xsl:value-of select="$section/parameter[@name = string($propertyName)]/enum[@value = string($propertyValue)]/@label"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$propertyValue"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="$propertyName = 'advancedSettings'">
- <xsl:for-each select="./value/settings/*">
- <xsl:call-template name="settingRow">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="desc" select="$propertyDesc"/>
- <xsl:with-param name="value" select="."/>
- <xsl:with-param name="position" select="concat($groupPosition,'_',$propertyPosition,'_',position())"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="$propertyName = 'serviceDefaultOptions'"/><!--Do nothing (Skip). It's handled within 'overrideOptions' below-->
- <xsl:when test="$propertyName = 'overrideOptions'">
- <xsl:variable name="current" select="."/>
- <xsl:for-each select="$section/parameter[@name = string($propertyName)]/enum">
- <xsl:variable name="enum" select="@value"/>
- <xsl:variable name="serviceDefaultOptionsProp" select="/root/cm:queryResponse/*/item[1]/queryResult/item/*[local-name()='serviceDefaultOptions']/value/item[name=$enum]/value"/>
- <xsl:variable name="enumValue" select="count($serviceDefaultOptionsProp) > 0 and $serviceDefaultOptionsProp='true'"/>
- <xsl:variable name="canOverride" select="count($propertyValue/item[name=$enum]/value) != 1"/>
- <xsl:variable name="overrideOption">
- <xsl:choose>
- <xsl:when test="$canOverride">
- <xsl:choose>
- <xsl:when test="$enumValue='true'">
- <uic:text><xts:string id="IDS_ADM_SET_BOOL_OVERRIDE_USER_SELECTED"/></uic:text>
- </xsl:when>
- <xsl:otherwise>
- <uic:text><xts:string id="IDS_ADM_SET_BOOL_OVERRIDE_USER_NOT_SELECTED"/></uic:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$enumValue='true'">
- <uic:text><xts:string id="IDS_ADM_SET_BOOL_OVERRIDE_ALWAYS"/></uic:text>
- </xsl:when>
- <xsl:otherwise>
- <uic:text><xts:string id="IDS_ADM_SET_BOOL_OVERRIDE_NEVER"/></uic:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="settingRow">
- <xsl:with-param name="name" select="@label"/>
- <xsl:with-param name="desc" select="$propertyDesc"/>
- <xsl:with-param name="value" select="$overrideOption"/>
- <xsl:with-param name="position" select="concat($groupPosition,'_',$propertyPosition,'_',position())"/>
- </xsl:call-template>
- </xsl:for-each>
- </xsl:when>
- <xsl:when test="$propertyName = 'qsROLAPCubeConfigurations' and ($mclass = 'configuration' or $mclass = 'configurationFolder' or $mclass = 'dispatcher')"/>
- <xsl:when test="$propertyName = 'qsROLAPCubeConfigurations' and not($mclass = 'configuration' or $mclass = 'configurationFolder' or $mclass = 'dispatcher')">
- <xsl:variable name="cubeCfgsValue">
- <xsl:for-each select="/root/rolapDatasources/cm:queryResponse/*/item[1]/queryResult/item/*[local-name()='defaultName']/value">
- <xsl:sort select="." order="ascending" lang="{/root/contentLocale}"/>
- <xsl:value-of select="."/>
- <xsl:value-of select="' '"/>
- </xsl:for-each>
- </xsl:variable>
- <xsl:variable name="ellipsis"><xts:string id="IDS_LIST_ELLIPSIS"/></xsl:variable>
- <xsl:variable name="visibleCubeCfgsValue">
- <xsl:choose>
- <xsl:when test="string-length($cubeCfgsValue) > 45">
- <xsl:value-of select="concat(substring($cubeCfgsValue,1,42),$ellipsis)"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="$cubeCfgsValue"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:call-template name="settingRow">
- <xsl:with-param name="name" select="$name"/>
- <xsl:with-param name="desc" select="$propertyDesc"/>
- <xsl:with-param name="value" select="$visibleCubeCfgsValue"/>
- <xsl:with-param name="position" select="concat($groupPosition,'_',$propertyPosition,'_',position())"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$propertyName = 'jmxProxyHostDispatchers'">
-
- <xsl:variable name="url-safe-searchPath" select="xtsext:protect(xtsext:urlencode(concat('storeID("',$storeid,'")')),'url','searchPath','getData')"/>
- <xsl:variable name="url" select="concat('?b_action=xts.run&m=portal/settings_jmxProxyHostDispatchers.xts&m=cogadmin/settings.xts&controller_state=readonly&m_class=', $mclass, '&m_path=',$url-safe-searchPath,'&m_obj=',$url-safe-searchPath,'&m_name=', $defaultName, '&backURL=javascript:parent._THIS_callBack();')"/>
- <xsl:call-template name="settingRow">
- <xsl:with-param name="name" select="$name"/>
- <xsl:with-param name="desc" select="$propertyDesc"/>
- <xsl:with-param name="guiType" select="'link'"/>
- <xsl:with-param name="value">
- <xsl:if test="count(./value/item) > 0">
- <text><xts:string id="IDS_ADM_SET_LINK_VIEW"/></text>
- <onclick>ui_modal_dialog.open('<xsl:value-of select="xtsext:javascriptencode(string($url))"/>',false,true,true)</onclick>
- </xsl:if>
- </xsl:with-param>
-
- <xsl:with-param name="position" select="concat($groupPosition,'_',$propertyPosition,'_',position())"/>
- </xsl:call-template>
- </xsl:when>
-
- <xsl:otherwise>
- <xsl:call-template name="settingRow">
- <xsl:with-param name="name" select="$name"/>
- <xsl:with-param name="desc" select="$propertyDesc"/>
- <xsl:with-param name="value" select="$value"/>
- <xsl:with-param name="position" select="concat($groupPosition,'_',$propertyPosition)"/>
- <xsl:with-param name="type" select="$section/parameter[@name = string($propertyName)]/@type"/>
- <xsl:with-param name="guiType" select="$section/parameter[@name = string($propertyName)]/@guiType"/>
- <xsl:with-param name="propType" select="$propertyType"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:if test="position() = last()">
- <xsl:text disable-output-escaping="yes"></uic:group></xsl:text>
- </xsl:if>
- </xsl:if>
- </xsl:for-each>
- </xsl:for-each>
- </uic:body>
- </xsl:when>
- <xsl:otherwise>
- <uic:body>
- <uic:row>
- <uic:column>
- <uic:text><xts:string id="IDS_ADM_SET_NO_PERMISSION"/></uic:text>
- </uic:column>
- </uic:row>
- </uic:body>
- </xsl:otherwise>
- </xsl:choose>
- <uic:footer displayLastUpdate="true" />
- </uic:table>
- </uic:fragment>
- </xsl:template>
-
- <xsl:template name="settingRow">
- <xsl:param name="name" select="''"/>
- <xsl:param name="desc" select="''"/>
- <xsl:param name="value" select="''"/>
- <xsl:param name="position" select="''"/>
- <xsl:param name="type" select="''"/>
- <xsl:param name="guiType" select="''"/>
- <xsl:param name="propType" select="''"/>
- <xsl:variable name="displayValue">
- <xsl:choose>
- <xsl:when test="$guiType = 'nilInt' and $value=''">
- <uic:text>
- <xts:string id="IDS_ADM_SET_PROPERTIES_UNLIMITED_VALUE"/>
- </uic:text>
- </xsl:when>
- <xsl:when test="$propType='cm:durationProp'">
- <xsl:variable name="daysDisplay"><xts:string id="IDS_PROP_DAYS"/></xsl:variable>
- <xsl:variable name="monthsDisplay"><xts:string id="IDS_PROP_MONTHS"/></xsl:variable>
- <xsl:variable name="hoursDisplay"><xts:string id="IDS_PROP_SETTINGS_UNITS_HOUR"/></xsl:variable>
- <xsl:variable name="minutesDisplay"><xts:string id="IIDS_PROP_SETTINGS_UNITS_MIN"/></xsl:variable>
- <xsl:variable name="secondsDisplay"><xts:string id="IDS_PROP_SETTINGS_UNITS_SEC"/></xsl:variable>
- <xsl:variable name="days">
- <xsl:value-of select="substring-before(substring-after($value,'P'),'D')"/>
- </xsl:variable>
- <xsl:variable name="months">
- <xsl:value-of select="substring-before(substring-after($value,'P'),'M')"/>
- </xsl:variable>
- <xsl:variable name="hours">
- <xsl:value-of select="substring-before(substring-after($value,'T'),'H')"/>
- </xsl:variable>
- <xsl:variable name="minutes">
- <xsl:value-of select="substring-before(substring-after($value,'T'),'M')"/>
- </xsl:variable>
- <xsl:variable name="seconds">
- <xsl:value-of select="substring-before(substring-after($value,'T'),'S')"/>
- </xsl:variable>
- <uic:text>
- <xsl:choose>
- <xsl:when test="$days!=''"><xsl:value-of select="concat($days,' ',$daysDisplay)"/></xsl:when>
- <xsl:when test="$months!=''"><xsl:value-of select="concat($months,' ',$monthsDisplay)"/></xsl:when>
- <xsl:when test="$hours!=''"><xsl:value-of select="concat($hours,' ',$hoursDisplay)"/></xsl:when>
- <xsl:when test="$minutes!=''"><xsl:value-of select="concat($minutes,' ',$minutesDisplay)"/></xsl:when>
- <xsl:when test="$seconds!=''"><xsl:value-of select="concat($seconds,' ',$secondsDisplay)"/></xsl:when>
- </xsl:choose>
- </uic:text>
- </xsl:when>
- <xsl:when test="$propType='cm:floatProp'">
- <uic:text>
- <xsl:variable name="numberPattern">
- <xsl:value-of select="string('#,##0.0################')"/>
- </xsl:variable>
- <xsl:value-of select="xtsext:formatNumber($value,$numberPattern,string($contentLocale), number(1))"/>
- </uic:text>
- </xsl:when>
- <xsl:otherwise>
- <uic:text>
- <xsl:value-of select="$value"/>
- </uic:text>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <uic:row>
- <uic:column height="15">
- <uic:name>
- <xsl:choose>
- <xsl:when test="xtsext:javascriptencode(string($desc)) = ''">
- <uic:text>
- <xsl:value-of select="$name"/>
- </uic:text>
- </xsl:when>
- <xsl:otherwise>
- <script>
- var g__THIS_<xsl:value-of select="$position"/>_itemcaption = new ui_tooltip(
- {
- id: '<xsl:value-of select="xtsext:javascriptencode(string($position))"/>',
- items: [
- new captionTooltipRenderer('<xts:string id="IDS_ADM_TOO_DESCRIPTION" encode="javascript"/>','<xsl:value-of select="xtsext:javascriptencode(string($desc))"/>')
-
- ]
- });
- </script>
- <uic:tooltipText id="{concat($position,'_itemcaption')}" onmouseover="g__THIS_{$position}_itemcaption.show(event);" onmouseout="g__THIS_{$position}_itemcaption.hide(event);" onmousemove="g__THIS_{$position}_itemcaption.mousemove(event);">
- <xsl:value-of select="$name"/>
- </uic:tooltipText>
- </xsl:otherwise>
- </xsl:choose>
- </uic:name>
- </uic:column>
- <uic:column nowrap="nowrap">
- <xsl:choose>
- <xsl:when test="$type = 'xsd:boolean'">
- <uic:icon>
- <uic:tooltip>
- <xsl:choose>
- <xsl:when test="$value = 'true'">
- <xts:string id="IDS_FLT_STATUS_ENABLED"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_FLT_STATUS_DISABLED"/>
- </xsl:otherwise>
- </xsl:choose>
- </uic:tooltip>
- <uic:src>
- <xsl:choose>
- <xsl:when test="$value = 'true'">
- <admui:imageURL image="checkbox_checked.gif" type="common"/>
- </xsl:when>
- <xsl:otherwise>
- <admui:imageURL image="checkbox_unchecked.gif" type="common"/>
- </xsl:otherwise>
- </xsl:choose>
- </uic:src>
- </uic:icon>
- </xsl:when>
- <xsl:when test="$guiType='link' and $value/text">
- <uic:link>
- <uic:text><xsl:value-of select="$value/text"/></uic:text>
- <uic:href>#</uic:href>
- <uic:onclick>
- <xsl:value-of select="$value/onclick"/>
- </uic:onclick>
- </uic:link>
- </xsl:when>
- <xsl:otherwise>
- <uic:text>
- <xsl:choose>
- <xsl:when test="$displayValue!=''">
- <xsl:value-of select="$displayValue"/>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="IDS_ADM_SET_EMPTY"/>
- </xsl:otherwise>
- </xsl:choose>
- </uic:text>
- </xsl:otherwise>
- </xsl:choose>
- </uic:column>
- </uic:row>
- </xsl:template>
- <xsl:template name="settingGroup">
- <xsl:param name="name" select="''"/>
- <xsl:param name="label" select="''"/>
- <xsl:param name="position" select="''"/>
- <xsl:param name="desc" select="''"/>
- <xsl:variable name="dspName">
- <xsl:choose>
- <xsl:when test="$label = ''">
- <xsl:value-of select="$name"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$label"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <uic:name>
- <xsl:choose>
- <xsl:when test="xtsext:javascriptencode(string($desc)) = ''">
- <xsl:value-of select="$dspName"/>
- </xsl:when>
- <xsl:otherwise>
- <script>
- var g__THIS_<xsl:value-of select="$position"/>_groupcaption = new ui_tooltip(
- {
- id: '<xsl:value-of select="xtsext:javascriptencode(string($position))"/>',
- items: [
- new captionTooltipRenderer('<xts:string id="IDS_ADM_TOO_DESCRIPTION" encode="javascript"/>','<xsl:value-of select="xtsext:javascriptencode(string($desc))"/>')
-
- ]
- });
- </script>
- <uic:tooltipText id="{concat($position,'_groupcaption')}" onmouseover="g__THIS_{$position}_groupcaption.show(event);" onmouseout="g__THIS_{$position}_groupcaption.hide(event);" onmousemove="g__THIS_{$position}_groupcaption.mousemove(event);">
- <xsl:value-of select="$dspName"/>
- </uic:tooltipText>
- </xsl:otherwise>
- </xsl:choose>
- </uic:name>
- </xsl:template>
- </xsl:stylesheet>
|