replaceScheduleCredentials.xslt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. replaceScheduleCredentials
  11. a block which will replace schedule credentials with current ones.
  12. ===============================================================================================
  13. -->
  14. <xsl:stylesheet version="1.0"
  15. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  16. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  17. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  18. exclude-result-prefixes="xsi">
  19. <!--
  20. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  21. xmlns:form="http://developer.cognos.com/schemas/xts/ags/iFrmCmd/1/"
  22. -->
  23. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  24. <xsl:template match="/">
  25. <xts:sequence>
  26. <xts:update select="/root/scheduleParameters/*[local-name()='item']/*[local-name()='credential']//*[local-name()='searchPath']/*[local-name()='value']">
  27. <value xsi:type="xsd:string">
  28. <xsl:value-of select="/root/*[local-name()='envelope']/*[local-name()='Envelope']/*[local-name()='Body']//*[local-name()='credentialPath']"/>
  29. </value>
  30. </xts:update>
  31. </xts:sequence>
  32. </xsl:template>
  33. </xsl:stylesheet>