1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: cpscrn
- (C) Copyright IBM Corp. 2005, 2011
- 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).
- -->
- <!-- $Header: //cpscrn/main/templates/cps4/portlets/utility/portlet-impl/html/view.xslt#1 $ -->
- <!-- $DateTime: 2008/10/22 11:12:04 $ -->
- <!-- $Change: 25109 $ -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:ui="http://developer.cognos.com/schemas/cps/logic/ui/1/"
- xmlns:portlet="http://developer.cognos.com/schemas/cps/logic/portlet/1/"
- exclude-result-prefixes="xts ui portlet">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <ui:property name="html-use-title" select="'html_use_title'"/>
- <ui:property name="html-url" select="'url'"/>
-
- <!-- create browser variable: $ui-browser -->
- <ui:browser/>
- <xsl:template match="/">
- <xsl:choose>
- <xsl:when test="$html-url != ''">
- <ui:property name="html-height" select="'html_height'"/>
- <xsl:if test="$ui-session-params[@name='url'] != ''">
- <a href="wsrp_rewrite?wsrp-urlType=blockingAction&wsrp-interactionState=set:{$ui-state-params[@name = 'channel']}&wsrp-windowState={$ui-window-state}&wsrp-navigationalState=&url=/wsrp_rewrite"><xts:string id="IDS_UTI_HTM_BACK_TO_DEFAULT"/></a>
- </xsl:if>
- <xsl:variable name="use-title" select="$html-use-title"/>
- <xsl:variable name="prefTitle">
- <xsl:choose>
- <xsl:when test="$html-use-title='true'">
- <xsl:variable name="titles" select="$ui-state-params[starts-with( @name, 'title_' ) and .!='']"/>
- <portlet:preferred-title-localized-value select="$titles"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$html-url"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <iframe src="{$html-url}" width="100%" frameborder="0" id="wsrp_rewrite_iframe">
- <xsl:if test="$html-height!='' and $ui-window-state != 'wsrp:maximized'">
- <xsl:attribute name="height"><xsl:value-of select="$html-height"/></xsl:attribute>
- </xsl:if>
- <xsl:attribute name="title"><xsl:value-of select="$prefTitle"/></xsl:attribute>
- </iframe>
-
- <ui:maximize-scripts ui:objectId="wsrp_rewrite_iframe"/>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellspacing="0" cellpadding="0" width="100%">
- <tr>
- <td class="portlet-font" align="center" valign="middle" height="100">
- <xsl:choose>
- <xsl:when test="$ui-state-params[@name = 'channel'] != ''"><xts:string id="IDS_UTI_HTM_READY_FOR_REQUESTS"/></xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="$ui-mode = 'wsrp:preview'"><xts:string id="IDS_PRO_NOC_LABEL_NO_CONTENT"/></xsl:when>
- <xsl:otherwise><xts:string id="IDS_PRO_NOC_LABEL_CLICK_EDIT"/></xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- <ui:preview/>
- </xsl:template>
- </xsl:stylesheet>
|