gen_head.xslt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  15. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  16. xmlns:pm="http://developer.cognos.com/schemas/xts/pm"
  17. xmlns:mt="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mt"
  18. xmlns:mf="http://developer.cognos.com/schemas/xts/logicsheets/presentation/main/mf"
  19. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  20. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  21. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  22. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  23. xmlns:rss="http://developer.cognos.com/schemas/xts/rss/"
  24. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  25. xmlns:out="dummy-uri"
  26. xmlns:cps="http://developer.cognos.com/schemas/cps/asm/objects/1/"
  27. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  28. exclude-result-prefixes="xsl cps cm pf pm mt mf xts xtsext cf cp rss out bus xts SOAP-ENV">
  29. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  30. <!-- Global vars -->
  31. <!-- ================================================= -->
  32. <mf:variables stateParams="m_ts m_folder m_folder2 m_nbid m_nbid2 m_section m_pagerfrom m_pagerto m_pg_e m_tab rui m_page backURL m_portlet" mode="main"/>
  33. <pf:variables/>
  34. <mf:main-variables/>
  35. <xsl:variable name="cmd-form" select="'cform'"/>
  36. <!-- start the output -->
  37. <!-- ================================================= -->
  38. <xsl:template match="/root">
  39. <xsl:variable name="oTitle">
  40. <xsl:choose>
  41. <xsl:when test="$pageName != ''">
  42. <xsl:value-of select="$pageName"/>
  43. </xsl:when>
  44. <xsl:when test="$pageNotFound != ''">
  45. <xts:string id="IDS_PAGE_UNAVAILABLE"/>
  46. </xsl:when>
  47. </xsl:choose>
  48. </xsl:variable>
  49. <head>
  50. <pf:meta expires="false"/>
  51. <title>
  52. <xsl:value-of select="$oTitle"/> -
  53. <xsl:choose>
  54. <xsl:when test="$displayMode = 'viewer'"><xts:string id="REPORT_VIEWER_WINDOW_TITLE"/></xsl:when>
  55. <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
  56. </xsl:choose>
  57. </title>
  58. <mt:stylesheet/>
  59. <mf:head/>
  60. <pf:help context=""/>
  61. <pf:launch/>
  62. </head>
  63. </xsl:template>
  64. </xsl:stylesheet>