RSUpgrade20To30.xsl 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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 Bering to Blaring.
  14. -->
  15. <xsl:stylesheet version="1.0" xmlns="http://developer.cognos.com/schemas/report/3.0/" xmlns:bering="http://developer.cognos.com/schemas/report/2.0/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:baltic="http://developer.cognos.com/schemas/report/1/" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common" xmlns:xalan="http://xml.apache.org/xalan" xmlns:java="http://xml.apache.org/xalan/java" extension-element-prefixes="xalan date exsl" exclude-result-prefixes="xalan java baltic date exsl">
  16. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" xalan:indent-amount="2" omit-xml-declaration="yes"/>
  17. <!-- strip out explicit namespace definitions. -->
  18. <xsl:template match="@xmlns">
  19. </xsl:template>
  20. <xsl:template match="@*|text()|comment()">
  21. <xsl:copy/>
  22. </xsl:template>
  23. <!-- Copy over anything. The only thing changed is the namespace. -->
  24. <xsl:template match="*">
  25. <xsl:element name="{local-name(.)}">
  26. <xsl:apply-templates select="@*|node()"/>
  27. </xsl:element>
  28. </xsl:template>
  29. </xsl:stylesheet>