deleteAccount.xts 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" requiredCapability="canUseAdministrationPortal">
  13. <xts:block id="doDelete" processor="XSLT" type="exec">
  14. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  15. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  16. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  17. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  18. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  19. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  20. xmlns:form="http://developer.cognos.com/schemas/xts/portal/iFrmCmd/1/"
  21. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  22. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  23. exclude-result-prefixes="xtsext">
  24. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  25. <xsl:template match="/">
  26. <xsl:apply-templates select="root/command/form:deleteAccount"/>
  27. </xsl:template>
  28. <xsl:template match="form:env">
  29. <xts:sequence>
  30. <xts:append>
  31. <send:request provider="cm">
  32. <cm2:deleteAccount xmlns:cm2="http://developer.cognos.com/schemas/contentManagerService/1">
  33. <objectPath xsi:type="bus:searchPathSingleObject">
  34. <xsl:value-of select="form:param[@name = 'm_obj']"/>
  35. </objectPath>
  36. </cm2:deleteAccount>
  37. </send:request>
  38. </xts:append>
  39. </xts:sequence>
  40. </xsl:template>
  41. </xsl:stylesheet>
  42. </xts:block>
  43. <xts:block id="result" processor="XSLT" type="exec" mode="output" mimeType="text/xml" dependency="doDelete">
  44. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  45. <xsl:stylesheet 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:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" version="1.0">
  46. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  47. <xsl:template match="/root">
  48. <xsl:choose>
  49. <xsl:when test="bus:response"><xsl:copy-of select="bus:response/child::*"/></xsl:when>
  50. <xsl:otherwise><error/></xsl:otherwise>
  51. </xsl:choose>
  52. </xsl:template>
  53. <xsl:template match="text()"/>
  54. </xsl:stylesheet>
  55. </xts:block>
  56. </xts:morphlet>