123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: rspecupgrade
- (C) Copyright IBM Corp. 2005, 2010
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!-- COPYRIGHT_DATA { 'YEAR':[2005, 2009], 'RELEASE':['colorado_wave1'], 'VISIBLE':'YES', 'COMPONENT':'rspecupgrade' }-->
- <!--All lines above the COPYRIGHT_DATA line will be replaced when copyright notices are generated. -->
- <!-- This morphlet is used to upgrade report specifications to a new version.
- The input is a SOAP message that contains the report to be upgraded.
- The report is escaped with < and > instead of < and >.
-
- The result is the upgraded report, and is not escaped.
- Changing the input is an API change that affects:
- * RSVP
- * Upgrade Manager
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xts:block id="return" processor="XSLT" type="exec" mode="output" mimeType="text/xml">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:rsupgrade="xalan://com.cognos.rspecupgrade.rsupgrade.morphlet.UpgradeReportSpecificationMorphlet" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rns1="http://developer.cognos.com/schemas/reportservice/upgrade/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!--
- * Upgrade a report specification.
- -->
- <xsl:template match="/">
- <xsl:variable name="var_locale" select="/root/envelope/SOAP-ENV:Envelope/SOAP-ENV:Header/bus:biBusHeader/bus:userPreferenceVars/item/name[normalize-space(text())='productLocale']/../value/text()"/>
- <xsl:apply-templates select="/root/envelope/SOAP-ENV:Envelope/SOAP-ENV:Body">
- <xsl:with-param name="p_locale" select="$var_locale"/>
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match="SOAP-ENV:Body">
- <xsl:param name="p_locale"/>
- <xsl:variable name="var_properties" select="rns1:upgrade/rns1:properties/text()"/>
- <xsl:variable name="var_report" select="rns1:upgrade/text()"/>
- <xsl:value-of select="rsupgrade:upgrade5($var_report, $p_locale, $var_properties)" disable-output-escaping="yes"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|