post-process_tp.xslt 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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. <!--
  13. Transforms the the results of an Upfront getTeTemplate command which returns a theme properties file.
  14. Theme Properties are provider-specific files that specify what Upf templates to use for what actions.
  15. They are usually named in the following format [provider]_themeproperties.xml. e.g. iwr_themeproperties.xml
  16. -->
  17. <xsl:stylesheet version="1.0"
  18. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  19. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  20. xmlns:up="http://developer.cognos.com/schemas/upfront/"
  21. xmlns:cogx="http://developer.cognos.com/schemas/cogx/"
  22. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  23. <xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes"/>
  24. <!-- We are only interested in the "template" part, so throw away everything else -->
  25. <xsl:template match="cogx:envelope/cogx:result/up:Result/up:template">
  26. <xsl:value-of select="." disable-output-escaping="yes"/>
  27. </xsl:template>
  28. </xsl:stylesheet>