12345678910111213141516171819202122232425262728293031323334353637 |
- <?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:xts="http://developer.cognos.com/schemas/xts/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xts xsl pf xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xts:delete select="/root/env/param[@name='taskParameters']"/>
- <!-- possible there may be no saved or recently created parm values -->
- <xsl:if test="/root/agent_item/parameterData">
- <!-- we also want to recreate the blob with the new param values from rs and the retrieved vals from cm-->
- <xsl:variable name="serialized_task_parameters">
- <xsl:call-template name="serialize-xml">
- <xsl:with-param name="node-set" select="/root/agent_item/parameterData"/>
- </xsl:call-template>
- </xsl:variable>
- <!-- build the task blob and whack it in with the other env params-->
- <xts:append select="/root/env">
- <param name="taskParameters">
- <xsl:value-of select="xtsext:web64encode( string( $serialized_task_parameters ), true())"/>
- </param>
- </xts:append>
- </xsl:if>
- <xts:delete select="/root/env/param[@name='controller_state']"/>
- <!-- This is not used after the parameters have been merged and blobed.-->
- <xts:delete select="/root/parameters"/>
- </xts:sequence>
- </xsl:template>
- <pf:serialize-xml/>
- </xsl:stylesheet>
|