missing_object.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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, 2013
  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:pf="http://developer.cognos.com/schemas/xts/pf"
  15. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  16. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  17. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  18. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  19. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  20. exclude-result-prefixes="xsl pf dp xtsext xts">
  21. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  22. <pf:variables/>
  23. <xsl:variable name="prd" select="/root/env/param[@name = 'prd']"/>
  24. <xsl:variable name="browserTitle">
  25. <xsl:choose>
  26. <xsl:when test="$prd != ''"><xsl:value-of select="$prd"/></xsl:when>
  27. <xsl:otherwise><xts:string id="IDS_PORTAL"/></xsl:otherwise>
  28. </xsl:choose>
  29. </xsl:variable>
  30. <xsl:template match="/">
  31. <xsl:variable name="tenantID" select="/root/*[local-name()='sessionResponse']//*[local-name()='tenantID']"/>
  32. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$product_name">
  33. <!-- this is the redirect portion of the code -->
  34. <dp:meta>
  35. <!-- Add standard meta tags -->
  36. <pf:meta/>
  37. <!--<meta http-equiv="refresh">
  38. <xsl:attribute name="content">0; URL=<xsl:value-of select="/root/env/param[@name = 'backURL']"/></xsl:attribute>
  39. </meta>-->
  40. <dp:script>
  41. <pf:help context=""/> <!-- Help system -->
  42. </dp:script>
  43. <!-- dialog header -->
  44. </dp:meta>
  45. <dp:header>
  46. <!-- header titles-->
  47. <dp:title showName="false">
  48. <xsl:value-of select="$browserTitle"/>
  49. </dp:title>
  50. <!-- header introduction -->
  51. <dp:close>
  52. <xsl:variable name="close"><xts:string id="IDS_CLOSE"/></xsl:variable>
  53. <a href="{key('env-param', 'backURL')}"><img height="16" width="16" class="dialogClose" vspace="2" border="0" src="{$skin_images}close.gif" alt="{$close}" onmouseover="this.className = 'dialogCloseOver'" onmouseout="this.className = 'dialogClose'"/></a>
  54. </dp:close>
  55. </dp:header>
  56. <xsl:variable name="isDefaultAcctProfileObject" select="/root/env/param[@name='m_class'] = 'account' and starts-with(/root/env/param[@name='m_obj'],'/configuration/account')"/>
  57. <xsl:variable name="userHasNotConfirmedCreate" select="not(/root/env/param[@name='createAcctProfile'] = 'true')"/>
  58. <lyt:layout style="1">
  59. <lyt:section>
  60. <dp:group>
  61. <dp:groupItem valign="top">
  62. <dp:text>
  63. <xsl:choose>
  64. <xsl:when test="$isDefaultAcctProfileObject and $userHasNotConfirmedCreate">
  65. <xts:string id="IDS_CREATE_DEFAULT_USER_PROFILE">
  66. <xts:param name="tenantName">
  67. <xsl:choose>
  68. <xsl:when test="/root/env/param[@name='m_tenantName']">
  69. <xsl:value-of select="/root/env/param[@name='m_tenantName']"/>
  70. </xsl:when>
  71. <xsl:when test="/root/env/param[@name='m_tenantId']">
  72. <xsl:value-of select="/root/env/param[@name='m_tenantId']"/>
  73. </xsl:when>
  74. <xsl:otherwise>
  75. <xsl:value-of select="key('session-param', 'e_tenantDisplayName')"/>
  76. </xsl:otherwise>
  77. </xsl:choose>
  78. </xts:param>
  79. </xts:string>
  80. </xsl:when>
  81. <xsl:otherwise>
  82. <xts:string id="IDS_OBJECT_INVALID"/>
  83. </xsl:otherwise>
  84. </xsl:choose>
  85. <br/>
  86. </dp:text>
  87. </dp:groupItem>
  88. </dp:group>
  89. </lyt:section>
  90. </lyt:layout>
  91. <dp:footer>
  92. <xsl:choose>
  93. <xsl:when test="$isDefaultAcctProfileObject and $userHasNotConfirmedCreate">
  94. <df:button df:id="IDS_OK" df:style="href" df:href="#" onclick="this.onclick=null;window.location=window.location+'&amp;createDefaultUserAcctProfile=true'"/>
  95. <df:button df:id="IDS_CANCEL" df:style="href" df:href="{key('env-param', 'backURL')}"/>
  96. </xsl:when>
  97. <xsl:otherwise>
  98. <df:button df:id="IDS_CLOSE" df:style="href" df:href="{key('env-param', 'backURL')}"/>
  99. </xsl:otherwise>
  100. </xsl:choose>
  101. </dp:footer>
  102. </dp:page>
  103. </xsl:template>
  104. </xsl:stylesheet>