presentation.xslt 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cpscrn
  5. (C) Copyright IBM Corp. 2005, 2015
  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" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  13. <xsl:template name="render-page">
  14. <html>
  15. <xsl:attribute name="lang">
  16. <xsl:choose>
  17. <xsl:when test="string($productLocale)!=''"><xsl:value-of select="$productLocale"/></xsl:when>
  18. <xsl:otherwise><xsl:value-of select="''"/></xsl:otherwise>
  19. </xsl:choose>
  20. </xsl:attribute>
  21. <xsl:if test="$is-ui-rtl">
  22. <xsl:attribute name="class">rtl</xsl:attribute>
  23. </xsl:if>
  24. <head>
  25. <title>
  26. <xsl:value-of select="/root/info/title"/>
  27. </title>
  28. <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  29. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  30. <meta content="(C) Copyright IBM Corp. 2005, 2011" name="copyright"/>
  31. <meta content="Licensed Material - Property of IBM Corp. IBM, the IBM logo, and Cognos are trademarks of IBM Corp., registered in many jurisdictions worldwide." name="trademark"/>
  32. <xsl:for-each select="/root/styles/css">
  33. <link type="{@type}" media="{@media}" rel="stylesheet" href="{@href}"/>
  34. </xsl:for-each>
  35. <xsl:call-template name="fragment-globals"/>
  36. <script type="text/javascript">
  37. <xsl:attribute name="src"><xsl:value-of select="$applicationGateway"/><xsl:text>/messages/messages/pfmessages?section=JS</xsl:text></xsl:attribute>
  38. </script>
  39. <xsl:for-each select="/root/libraries/library">
  40. <script type="{@type}" src="{@href}"/>
  41. </xsl:for-each>
  42. <xsl:call-template name="html-globals"/>
  43. </head>
  44. <!-- Do not add any element under body. the template "html-pre-page" might add an attribute to the body element which will fail if there is an element under body before calling that template -->
  45. <body>
  46. <xsl:if test="$is-ui-rtl">
  47. <xsl:attribute name="dir">rtl</xsl:attribute>
  48. </xsl:if>
  49. <xsl:call-template name="html-pre-page"/>
  50. <xsl:call-template name="html-header"/>
  51. <xsl:call-template name="html-body"/>
  52. <xsl:call-template name="html-footer"/>
  53. <xsl:call-template name="html-post-page"/>
  54. <form name="cps_backjaxform" id="cps_backjaxform" aria-hidden="true" role="form">
  55. <input type="hidden" name="visited" value="false"/>
  56. </form>
  57. </body>
  58. </html>
  59. </xsl:template>
  60. <!-- extensions: override as needed -->
  61. <xsl:template name="html-globals"/>
  62. <xsl:template name="html-pre-page"/>
  63. <xsl:template name="html-header"/>
  64. <xsl:template name="html-body"/>
  65. <xsl:template name="html-footer"/>
  66. <xsl:template name="html-post-page"/>
  67. </xsl:stylesheet>