RSUpgrade40To50.xsl 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: rspecupgrade
  5. (C) Copyright IBM Corp. 2005, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <!-- COPYRIGHT_DATA { 'YEAR':[2005, 2009], 'RELEASE':['colorado_wave1'], 'VISIBLE':'YES', 'COMPONENT':'rspecupgrade' }-->
  10. <!--All lines above the COPYRIGHT_DATA line will be replaced when copyright notices are generated. -->
  11. <!--
  12. *
  13. * Transform a report specification from Blacksea INR to Blacksea MR1.
  14. -->
  15. <xsl:stylesheet version="1.0" xmlns="http://developer.cognos.com/schemas/report/5.0/" xmlns:bse="http://developer.cognos.com/schemas/report/4.0/" xmlns:bsemr1="http://developer.cognos.com/schemas/report/5.0/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  16. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  17. <!-- strip out explicit namespace definitions. -->
  18. <xsl:template match="@xmlns">
  19. </xsl:template>
  20. <!-- Work Order 2516 - Dynamic Filtering of Report Data - II
  21. * Set the /report@ignoreFilterContext attribute to "false".
  22. * ignoreFilterContext is a new attribute introduced in BSEMR1.
  23. -->
  24. <xsl:template match="bse:report">
  25. <xsl:element name="report" namespace="http://developer.cognos.com/schemas/report/5.0/">
  26. <xsl:attribute name="ignoreFilterContext">false</xsl:attribute>
  27. <xsl:apply-templates select="@*"/>
  28. <xsl:apply-templates/>
  29. </xsl:element>
  30. </xsl:template>
  31. <!-- Work Order 2516 - Dynamic Filtering of Report Data - II
  32. * Set all drillTarget@sendFilterContext attributes to "false".
  33. * sendFilterContext is a new attribute introduced in BSEMR1.
  34. -->
  35. <xsl:template match="bse:drillTarget">
  36. <xsl:element name="drillTarget" namespace="http://developer.cognos.com/schemas/report/5.0/">
  37. <xsl:attribute name="sendFilterContext">false</xsl:attribute>
  38. <xsl:apply-templates select="@*"/>
  39. <xsl:apply-templates/>
  40. </xsl:element>
  41. </xsl:template>
  42. <!-- Copy over non=specific stuff -->
  43. <xsl:template match="@*|text()|comment()">
  44. <xsl:copy/>
  45. </xsl:template>
  46. <xsl:template match="*">
  47. <xsl:element name="{local-name(.)}" namespace="http://developer.cognos.com/schemas/report/5.0/">
  48. <xsl:apply-templates select="@*|node()"/>
  49. </xsl:element>
  50. </xsl:template>
  51. </xsl:stylesheet>