RSUpgradeReportVariables.xsl 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:baltic="http://developer.cognos.com/schemas/report/1/" 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">
  12. <xsl:template match="baltic:variableList">
  13. <reportVariables>
  14. <xsl:apply-templates select="baltic:variable"/>
  15. </reportVariables>
  16. </xsl:template>
  17. <xsl:template match="baltic:variable">
  18. <reportVariable>
  19. <xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute>
  20. <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
  21. <xsl:if test="@upgradeNoteId">
  22. <xsl:attribute name="upgradeNoteId"><xsl:value-of select="@upgradeNoteId"/></xsl:attribute>
  23. </xsl:if>
  24. <xsl:apply-templates/>
  25. </reportVariable>
  26. </xsl:template>
  27. <xsl:template match="baltic:variableValueList">
  28. <variableValues>
  29. <xsl:apply-templates select="baltic:valueGroup"/>
  30. <xsl:apply-templates select="baltic:variableValue"/>
  31. </variableValues>
  32. </xsl:template>
  33. <xsl:template match="baltic:valueGroup">
  34. <variableValueGroup>
  35. <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
  36. <xsl:apply-templates select="baltic:variableValue"/>
  37. </variableValueGroup>
  38. </xsl:template>
  39. <xsl:template match="baltic:variableValue">
  40. <variableValue>
  41. <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
  42. </variableValue>
  43. </xsl:template>
  44. </xsl:stylesheet>