get_target_content.xslt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. *****************************************************************
  4. ** Licensed Materials - Property of IBM
  5. **
  6. ** IBM Cognos Products: drill
  7. **
  8. ** (C) Copyright IBM Corp. 2001, 2010
  9. **
  10. ** US Government Users Restricted Rights - Use, duplication or
  11. ** disclosure restricted by GSA ADP Schedule Contract with
  12. ** IBM Corp.
  13. *****************************************************************
  14. -->
  15. <!--
  16. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  17. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  18. -->
  19. <!--
  20. Report server request to read the parameters of a target report.
  21. -->
  22. <xsl:stylesheet version="1.0"
  23. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  24. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  25. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  26. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  27. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  28. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  29. <xsl:template match="/">
  30. <xts:sequence>
  31. <xts:append>
  32. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  33. <send:request provider="cm">
  34. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  35. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  36. <cm:search>
  37. <xsl:value-of select="/root/env/param[@name='m_obj']"/>
  38. </cm:search>
  39. <cm:properties>
  40. <cml:prop-general/>
  41. <cm:property name="scope"/>
  42. <cm:property name="options"/>
  43. <cm:property name="action"/>
  44. <cm:property name="bookmarkItem"/>
  45. <cm:property name="bookmarkText"/>
  46. <cm:property name="permissions"/>
  47. <cm:property name="parameterAssignments"/>
  48. <cm:property name="deploymentReferences"/>
  49. <cm:property name="specification"/>
  50. </cm:properties>
  51. <cm:options schemaInfo="true">
  52. <cm:refProps>
  53. <!-- Get target info for shortcut objects -->
  54. <cm:refProp refPropName="target">
  55. <cm:properties>
  56. <cm:property name="searchPath"/>
  57. <cm:property name="defaultPortalAction"/>
  58. <cm:property name="defaultName"/>
  59. <cm:property name="ancestors"/>
  60. <cm:property name="permissions"/>
  61. <cm:property name="parent"/>
  62. <cm:property name="base"/>
  63. </cm:properties>
  64. </cm:refProp>
  65. </cm:refProps>
  66. </cm:options>
  67. </cm:query>
  68. </xts:transform>
  69. </send:request>
  70. </xts:transform>
  71. </xts:append>
  72. <xts:delete select="/root/env/param[starts-with(string(@name),'pager')]"/>
  73. </xts:sequence>
  74. </xsl:template>
  75. </xsl:stylesheet>