RSUpgradeExpressions.xsl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. * This stylesheet generates an augmented v4 report specification from a v4
  13. * report specification. The augmentation is a propertyList that immediately follows the expressions
  14. * and conditions.
  15. *
  16. -->
  17. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:baltic="http://developer.cognos.com/schemas/report/1/" xmlns:bering="http://developer.cognos.com/schemas/report/2.0/" xmlns="http://developer.cognos.com/schemas/report/2.0/" 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" xmlns:external="http://developer.cognos.com/schemas/report/upgrade/4to5/">
  18. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  19. <!--
  20. <xsl:template match="baltic:expression|baltic:condition">
  21. <xsl:copy-of select="."/>
  22. <xsl:variable name="propertyItems"><xsl:value-of disable-output-escaping="yes" select="external:propertyItems(.)"/></xsl:variable>
  23. <xsl:if test="string-length($propertyItems)">
  24. <propertyList>
  25. <xsl:copy-of select="$propertyItems"/>
  26. </propertyList>
  27. </xsl:if>
  28. </xsl:template>
  29. -->
  30. <xsl:template match="@*|node()">
  31. <xsl:copy>
  32. <xsl:apply-templates select="@*|node()"/>
  33. </xsl:copy>
  34. </xsl:template>
  35. </xsl:stylesheet>