restoreEntries.xslt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0"
  9. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  10. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  11. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" >
  12. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  13. <xsl:template match="/">
  14. <xts:sequence>
  15. <xsl:choose>
  16. <xsl:when test="/root/env/param[@name='jmx_properties_idx']">
  17. <xsl:if test="/root/env/param[@name='jmxProxyHostDispatchers']">
  18. <xts:delete select="/root/jmxProxyHostDispatchers"/>
  19. </xsl:if>
  20. <xts:append select="/root">
  21. <jmxProxyHostDispatchers>
  22. <xts:transform src="transforms/portal/jmxProxyHostDispatchers/orderEntries.xslt" processor="XSLT">
  23. <entries>
  24. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string( /root/env/param[@name='jmxProxyHostDispatchers'] )), true() )" disable-output-escaping="yes"/>
  25. <order>
  26. <xsl:copy-of select="/root/env/param[@name='jmx_properties_idx']"/>
  27. </order>
  28. </entries>
  29. </xts:transform>
  30. </jmxProxyHostDispatchers>
  31. </xts:append>
  32. </xsl:when>
  33. <xsl:otherwise>
  34. <xts:delete select="/root/jmxProxyHostDispatchers"/>
  35. <xts:append select="/root">
  36. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction( 'sign_unwrap', string( /root/env/param[@name='jmxProxyHostDispatchers'] )), true() )" disable-output-escaping="yes"/>
  37. </xts:append>
  38. </xsl:otherwise>
  39. </xsl:choose>
  40. </xts:sequence>
  41. </xsl:template>
  42. </xsl:stylesheet>