getQRBTResourceIDs.xslt 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  5. (C) Copyright IBM Corp. 2005, 2010
  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. <!--
  13. Used to replace all the actionResourceID params in the environment with those returned by the QRBT request
  14. -->
  15. <xsl:stylesheet version="1.0"
  16. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  18. xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
  19. xmlns:ns1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
  20. exclude-result-prefixes="xsl muws2 ns1">
  21. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  22. <xsl:template match="/root">
  23. <xsl:apply-templates select="./muws2:QueryRelationshipsByTypeResponse/*"/>
  24. </xsl:template>
  25. <xsl:template match="muws2:Relationship">
  26. <xsl:for-each select="./muws2:Participant[position() &gt; 1]">
  27. <param name="actionResourceID"><xsl:value-of select="ns1:ResourceId"/></param>
  28. </xsl:for-each>
  29. </xsl:template>
  30. <xsl:template match="*"/>
  31. </xsl:stylesheet>