123456789101112131415161718192021222324252627282930313233343536 |
- <?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.
- -->
- <!--
- ================================================================================
- decodeAgentDefinition
-
- a block which takes all the saved actions in the index and expands them into individual blocks
- ===============================================================================================
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <!-- copy the agent_definition blob out again -->
- <xsl:copy-of select="/root/agent_definition"/>
- <!-- expand each of the agent tasks -->
- <xsl:for-each select="/root/agent_definition/items/item">
- <xsl:element name="agent_item">
- <xsl:attribute name="type"><xsl:value-of select="./type"/></xsl:attribute>
- <xsl:attribute name="id"><xsl:value-of select="./id"/></xsl:attribute>
- <xsl:attribute name="name"><xsl:value-of select="./name"/></xsl:attribute>
- <xsl:variable name="id" select="./id"/>
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap_settemplatename_decodeagentdefinition_settemplateid_save001',string(/root/param[@name=$id])), true())" disable-output-escaping="yes"/>
- </xsl:element>
- </xsl:for-each>
- <!-- decode the schedule parameters if there are any -->
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap_settemplatename_decodeagentdefinition_settemplateid_save001',string(/root/param[@name='AgentTask-schedule'])), true())" disable-output-escaping="yes"/>
- </xsl:template>
- </xsl:stylesheet>
|