decodeAgentDefinitionBlob.xslt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: AGS
  5. (C) Copyright IBM Corp. 2005, 2008
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. ===============================================================================================
  10. decodeAgentDefinitionBlob
  11. a block which decodes the top level index of all the agent actions
  12. ===============================================================================================
  13. -->
  14. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:form="http://developer.cognos.com/schemas/xts/ags/iFrmCmd/1/" exclude-result-prefixes="cml send dt xtsext xtscm form">
  15. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  16. <xsl:template match="/">
  17. <xsl:choose>
  18. <xsl:when test="/root/agent_definition_blob">
  19. <xsl:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap_settemplatename_decodeagentdefinitionblob_settemplateid_save001', string( /root/agent_definition_blob )),true() )" disable-output-escaping="yes"/>
  20. </xsl:when>
  21. <xsl:otherwise>
  22. <agent_definition>
  23. <agentOptions/>
  24. <sequencing>parallel</sequencing>
  25. <allowNotification>false</allowNotification>
  26. <notificationList/>
  27. <condition/>
  28. <schedule/>
  29. <deletedItems/>
  30. <items/>
  31. </agent_definition>
  32. </xsl:otherwise>
  33. </xsl:choose>
  34. </xsl:template>
  35. </xsl:stylesheet>