centralabout.xsl 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  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. -->
  12. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/"
  15. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  16. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  17. xmlns:out="dummy-uri"
  18. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  19. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  20. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" exclude-result-prefixes="dp xsl xtsext xts utml cm">
  21. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  22. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  23. <!--
  24. This stylesheet (centralabout.xsl) consists of the following templates:
  25. ca:version - render the about version.
  26. ca:copyright - render the about copyright.
  27. ca:trademark - render the about trademark.
  28. ca:legal - render the about legal obligations.
  29. -->
  30. <!--
  31. Template - ca:version:
  32. This template is used for rendering the build version number to be presented in the about box.
  33. -->
  34. <xsl:template match="ca:version">
  35. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  36. <tr>
  37. <td height="10" width="100%">
  38. <img height="10" width="1">
  39. <xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute>
  40. </img>
  41. </td>
  42. </tr>
  43. </table>
  44. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  45. <tr>
  46. <td><img height="30" width="5"><xsl:attribute name="src"><xsl:value-of select="'{$webcontent}'"/>/images/space.gif</xsl:attribute></img></td>
  47. <td height="30" width="30" valign="middle" style="padding-right:10px;">
  48. <img src="{'{$brand_images}'}about.gif" >
  49. <out:attribute name="alt">
  50. <xts:string id="IDS_BUSINESS_NAME"/>
  51. </out:attribute>
  52. </img>
  53. </td>
  54. <td width="100%" height="30">
  55. <table border="0" cellpadding="0" cellspacing="0">
  56. <tr>
  57. <td valign="top" height="15">
  58. <span class="bold"><span class="dialogHeaderText"><xts:string id="IDS_ABOUT_VERSION"/></span></span>&#160;<span class="dialogHeaderText"><xsl:copy-of select="dp:version/child::node()"/></span><span class="formText"><xsl:copy-of select="dp:versionText/child::node()"/></span>
  59. </td>
  60. </tr>
  61. <tr>
  62. <td valign="bottom" height="15"><span class="formText"><xts:string id="IDS_ABOUT_GENERIC_PATENT"/></span>
  63. </td>
  64. </tr>
  65. </table>
  66. </td>
  67. </tr>
  68. </table>
  69. </xsl:template>
  70. <!--
  71. Template - ca:trademark:
  72. This template is used for rendering the trademark information to be presented in the about box.
  73. -->
  74. <xsl:template match="ca:trademark">
  75. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  76. <tr>
  77. <td width="100%" style="padding-top: 10px; padding-left: 45px; padding-right: 18px;">
  78. <iframe style="width:100%;height:200px;margin:0px;" src="{'{$webRoot}'}/documentation/cognos_copyright.html"/>
  79. </td>
  80. </tr>
  81. </table>
  82. </xsl:template>
  83. <!--
  84. Template - ca:legal:
  85. This template is used for rendering the legal obligations to be presented in the about box.
  86. -->
  87. <xsl:template match="ca:legal">
  88. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  89. <tr>
  90. <td class="legalText" valign="middle" height="20" style="padding-top: 10px; padding-left: 5px;">
  91. <xts:string id="IDS_ABOUT_LEGAL"/>
  92. </td>
  93. </tr>
  94. </table>
  95. </xsl:template>
  96. <!--
  97. * - This next template is required to copy all other elements into the result.
  98. -->
  99. <xsl:template match="*">
  100. <xsl:copy>
  101. <xsl:copy-of select="@*"/>
  102. <xsl:apply-templates/>
  103. </xsl:copy>
  104. </xsl:template>
  105. </xsl:stylesheet>