common.xslt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  13. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  14. xmlns:cls="http://developer.cognos.com/schemas/xts/cls/"
  15. xmlns:out="dummy-uri">
  16. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  17. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  18. <xsl:template match="cls:unpackCredentials">
  19. <out:if test="/root/env/param[@name='m_scheduleCredentials']">
  20. <xts:delete select="/root/*[local-name()='scheduleCredentials']"/>
  21. <xts:append select="/root">
  22. <scheduleCredentials>
  23. <out:value-of select="xtsext:web64decode( xtsext:cafaction('sign_unwrap', string( key('env-param','m_scheduleCredentials') )),true())" disable-output-escaping="yes"/>
  24. </scheduleCredentials>
  25. </xts:append>
  26. </out:if>
  27. </xsl:template>
  28. <xsl:template match="*">
  29. <xsl:copy>
  30. <xsl:copy-of select="@*"/>
  31. <xsl:apply-templates/>
  32. </xsl:copy>
  33. </xsl:template>
  34. </xsl:stylesheet>