copy-policies.xslt 1.6 KB

1234567891011121314151617181920212223242526272829
  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. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:xtscm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:cm="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xtscm">
  13. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  14. <!--
  15. ============================================================================================
  16. Template to merge query responses
  17. To use this XSLT transform, the multiple <queryResponse> elements must be enclosed in a
  18. single <queryResponses> element bearing the same namespace-uri.
  19. ============================================================================================
  20. -->
  21. <xsl:template match="*[local-name()='queryResponses' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']">
  22. <xsl:copy-of select="*[local-name()='queryResponse' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']/*"/>
  23. </xsl:template>
  24. </xsl:stylesheet>