123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:agsad="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/agentDefinition/" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:xts="http://developer.cognos.com/schemas/xts/" exclude-result-prefixes="xsl agsad dp xts">
- <xsl:output method="xml" encoding="utf-8" indent="no"/>
- <xsl:template match="/">
- <xsl:variable name="tabSelectedID" select="/root/sb/param[@name='tabSelectedID']"/>
- <xsl:variable name="type">
- <xsl:value-of select="/root/agent_definition/items/item[./id= $tabSelectedID]/type"/>
- </xsl:variable>
- <xsl:variable name="displayDetails">
- <xsl:call-template name="displayDetails">
- <xsl:with-param name="type">
- <xsl:value-of select="$type"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="eventList">
- <xsl:call-template name="chopText">
- <xsl:with-param name="text">
- <xsl:call-template name="getTaskSuppressionStateText">
- <xsl:with-param name="suppression-node" select="/root/agent_definition/items/item[./id = $tabSelectedID]/suppression"/>
- </xsl:call-template>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="runOnFailure">
- <xsl:value-of select="/root/agent_definition/items/item[./id= $tabSelectedID ]/runCondition = 'runOnFailure'"/>
- </xsl:variable>
- <xsl:variable name="display">
- <xsl:if test="$runOnFailure != 'true' and $eventList = ''">none</xsl:if>
- </xsl:variable>
- <xts:sequence>
- <xts:append select="/root">
- <suppressionDetails>
- <xsl:attribute name="isCurrentFailureTask"><xsl:value-of select="$runOnFailure"/></xsl:attribute>
- <xts:transform name="XMLEncode">
- <dp:list>
- <xsl:attribute name="id">eventListTable</xsl:attribute>
- <xsl:attribute name="style">display:<xsl:value-of select="$display"/></xsl:attribute>
- <dp:section>
- <dp:label>
- <xsl:choose>
- <xsl:when test="$runOnFailure = 'true' ">
- <xts:string id="DIALOG_SUPPRESSION_SUMMARY_TEXT_HEADING_ON_FAILURE">
- <xts:param name="taskType">
- <xsl:value-of select="$displayDetails/text"/>
- </xts:param>
- </xts:string>
- </xsl:when>
- <xsl:otherwise>
- <xts:string id="DIALOG_SUPPRESSION_SUMMARY_TEXT_HEADING">
- <xts:param name="taskType">
- <xsl:value-of select="$displayDetails/text"/>
- </xts:param>
- </xts:string>
- </xsl:otherwise>
- </xsl:choose>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text wrap="true" nospace="true">
- <xsl:value-of select="$eventList"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </xts:transform>
- </suppressionDetails>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- <agsad:taskSuppressionStateText/>
- <agsad:displayDetails/>
- </xsl:stylesheet>
|