123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- 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:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
- <xsl:template match="/">
- <script>
- function _THIS_linkdropdown(control) {
- var reportID = control.options[control.selectedIndex].value;
- _THIS_.transientUpdate("display_id", reportID, "page", "taskLinkViewer");
- }
- </script>
- <table cellpadding="3" cellspacing="2" border="0" width="100%" align="left">
- <tr>
- <td>
- <select class="selectDropDown" onchange="_THIS_linkdropdown(this)">
- <option value=""><xts:string id="IDS_FRAG_LINK_VIEWER_SELECT_REPORT_PROMPT"/></option>
- <xsl:call-template name="displayLinks">
- <xsl:with-param name="links" select="/root/input[@name='dep']/queryResponse/*"/>
- </xsl:call-template>
- </select>
- </td>
- </tr>
- </table>
- </xsl:template>
- <xsl:template name="displayLinks">
- <xsl:param name="links"/>
- <xsl:for-each select="$links">
- <xsl:variable name="link_id" select="*[local-name()='linkId']"/>
- <option value="{$link_id}">
- <xsl:value-of select="*[local-name()='display']"/>
- </option>
- </xsl:for-each>
- </xsl:template>
- </xsl:stylesheet>
|