123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <?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:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <pf:variables/>
- <xsl:template match="/">
- <xts:sequence>
- <!-- add defaults for the parameters - which is not here but in perforce history now -->
- <xts:append select="/root/env">
- <!--xsl:if test="not(/root/env/param[@name='visited_run_options'])">
- <param name="visited_run_options">
- <xsl:text>true</xsl:text>
- </param>
- </xsl:if-->
- <!-- do we show the summary page? -->
- <param name="showSummary">
- <xsl:value-of select="/root/system/param[@name = 'defaultPortalPreferences']/pref[@name='runoptions']"/>
- </param>
- <xsl:variable name="save_as_name">
- <xts:string id="IDS_ACT_CUSTOM_OF">
- <xts:param name="curName">
- <xsl:value-of select="/root/env/param[@name='m_name']"/>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <param name="m_ro_saveAsType">reportView</param>
- <param name="m_ro_saveAsName">
- <xsl:value-of select="normalize-space($save_as_name)"/>
- </param>
- <param name="m_ro_saveAsPath">
- <xsl:value-of select="'~/folder'"/>
- </param>
- <param name="save_how">report</param>
- <param name="m_ro_outputLocale">
- <xsl:value-of select="*/cm:executionLocale"/>
- </param>
- <param name="m_ro_prompt">
- <xsl:value-of select="*/cm:executionPrompt"/>
- </param>
- </xts:append>
- <xsl:variable name="defaultFormat">
- <xsl:choose>
- <xsl:when test="*/cm:executionFormat!=''">
- <xsl:choose>
- <xsl:when test="*/cm:executionFormat != 'XLS' or xtsext:cafaction('get_configsignedreporturls', '') != 'true'">
- <xsl:value-of select="*/cm:executionFormat"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'singleXLS'"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>HTML</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <xsl:choose>
- <xsl:when test="contains($defaultFormat, 'HTML')">
- <param>
- <xsl:attribute name="name">m_ro_outputFormat_HTML</xsl:attribute>
- <xsl:value-of select="$defaultFormat"/>
- </param>
- <param name="m_ro_outputF_HTML_Type">true</param>
- </xsl:when>
- <xsl:when test="contains($defaultFormat, 'XLS')">
- <param>
- <xsl:attribute name="name">m_ro_outputFormat_XLS2000</xsl:attribute>
- <xsl:value-of select="$defaultFormat"/>
- </param>
- <param name="m_ro_outputF_XLS2000_Type">true</param>
- </xsl:when>
- <xsl:otherwise>
- <param>
- <xsl:attribute name="name">m_ro_outputFormat_<xsl:value-of select="$defaultFormat"/></xsl:attribute>
- <xsl:value-of select="$defaultFormat"/>
- </param>
- <xsl:if test="*/cm:executionPageOrientation!=''">
- <param name="m_ro_outputPageOrientation">
- <xsl:value-of select="*/cm:executionPageOrientation"/>
- </param>
- </xsl:if>
- <xsl:if test="*/cm:executionPageDefinition!=''">
- <param name="m_ro_outputPageDefinition">
- <xsl:value-of select="*/cm:executionPageDefinition/*/cm:searchPath"/>
- </param>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- <!-- delete the genDefaults param -->
- <xts:delete select="/root/env/param[@name='genDefaults']" mandatory="false"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|