cmUpgradeLog.xsl 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: CM
  5. (C) Copyright IBM Corp. 2008, 2009
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  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. <xsl:stylesheet version="1.0"
  12. exclude-result-prefixes="cc xhtml"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:cc="http://developer.cognos.com/schema/ChangeControl/1/"
  15. xmlns:xhtml="http://www.w3.org/1999/xhtml"
  16. >
  17. <xsl:output method="html" indent="yes" omit-xml-declaration="yes" encoding="UTF-8"/>
  18. <xsl:template match="cognosUpgrade">
  19. <style>
  20. h1 {COLOR: red; FONT-FAMILY: Arial; FONT-SIZE: 14pt;}
  21. h2 {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
  22. .subhead {COLOR: darkblue; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
  23. .text {COLOR: black; FONT-FAMILY: Arial; FONT-SIZE: 12pt;}
  24. th {COLOR: white; FONT-FAMILY: Arial; background-color: darkblue;}
  25. </style>
  26. <p>
  27. <h1><xsl:value-of select="heading/upgradeResults"/></h1>
  28. <table border="1">
  29. <tr>
  30. <th><xsl:value-of select="heading/objectClass"/></th>
  31. <th><xsl:value-of select="heading/total"/></th>
  32. <th><xsl:value-of select="heading/success"/></th>
  33. <th><xsl:value-of select="heading/failure"/></th>
  34. <th><xsl:value-of select="heading/upToDate"/></th>
  35. </tr>
  36. <xsl:for-each select="plugin[contains(@id, 'CM_internal') = false]">
  37. <tr>
  38. <xsl:apply-templates select="objectClasses"/>
  39. <xsl:apply-templates select="summary"/>
  40. </tr>
  41. </xsl:for-each>
  42. </table>
  43. </p>
  44. <xsl:if test="error[@type='plugin']">
  45. <p>
  46. <h1><xsl:value-of select="heading/errors"/></h1>
  47. <table border="1" frame="box">
  48. <tr>
  49. <th><xsl:value-of select="heading/objectClass"/></th>
  50. <th><xsl:value-of select="heading/error"/></th>
  51. <th><xsl:value-of select="heading/searchPath"/></th>
  52. </tr>
  53. <xsl:for-each select="error[@type='plugin']">
  54. <tr>
  55. <td><xsl:value-of select="objectClass"/></td>
  56. <td><xsl:value-of select="message"/></td>
  57. <td><xsl:value-of select="searchPath"/></td>
  58. </tr>
  59. </xsl:for-each>
  60. </table>
  61. </p>
  62. </xsl:if>
  63. <p>
  64. <h1><xsl:value-of select="heading/invalidRefs"/></h1>
  65. <table border="1">
  66. <tr>
  67. <th>Message</th>
  68. </tr>
  69. <xsl:for-each select="error[@type='dataError']">
  70. <tr>
  71. <td><xsl:value-of select="message"/></td>
  72. </tr>
  73. </xsl:for-each>
  74. </table>
  75. </p>
  76. </xsl:template>
  77. <!--
  78. <xsl:template match="plugin">
  79. <tr>
  80. <td>
  81. <xsl:value-of select="@id"/>
  82. </td>
  83. <xsl:apply-templates />
  84. </tr>
  85. </xsl:template>
  86. -->
  87. <xsl:template match="error">
  88. <!-- <tr>
  89. <td>
  90. <xsl:value-of select="@message"/>
  91. </td>
  92. </tr> -->
  93. </xsl:template>
  94. <xsl:template match="summary">
  95. <td>
  96. <xsl:value-of select="@total"/>
  97. </td>
  98. <td>
  99. <xsl:value-of select="@success"/>
  100. </td>
  101. <td>
  102. <xsl:value-of select="@failure"/>
  103. </td>
  104. <td>
  105. <xsl:value-of select="@upToDate"/>
  106. </td>
  107. </xsl:template>
  108. <xsl:template match="objectClasses">
  109. <td>
  110. <xsl:value-of select="objectClass"/>
  111. </td>
  112. </xsl:template>
  113. <xsl:template match="objectClass">
  114. </xsl:template>
  115. <xsl:template match="property">
  116. </xsl:template>
  117. <xsl:template match="properties">
  118. </xsl:template>
  119. </xsl:stylesheet>