sa.xsl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: Viewer
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or
  7. disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rsext="xalan://com.cognos.reportserver.ext.RSExt" version="1.0" exclude-result-prefixes="xsl rsext">
  10. <xsl:include href="V5environment.xsl"/>
  11. <xsl:include href="V5ReportEngine.xsl"/>
  12. <!-- Include needed for prompting -->
  13. <xsl:include href="../../ps/prompting/p_include_V5ParamSafe.xsl"/>
  14. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  15. <xsl:variable name="promptLocale" select="$contentLocale"/>
  16. <xsl:variable name="promptFormName" select="'formWarpRequest'"/>
  17. <xsl:template match="/Document">
  18. <script type="text/javascript" src="{$webRoot}/prompting/CDispatcher.js">//</script>
  19. <script type="text/javascript"><xsl:text>
  20. try {
  21. if (parent.OnReportOutput) {
  22. parent.OnReportOutput();
  23. }
  24. }
  25. catch (e) {}
  26. function getFormWarpRequest()
  27. {
  28. return document.</xsl:text><xsl:value-of select="$promptFormName"/><xsl:text>;
  29. }
  30. </xsl:text>
  31. <xsl:text>
  32. function isAllowEmptyStrings()
  33. {
  34. </xsl:text>
  35. <xsl:choose>
  36. <xsl:when test="$PRMT_allowEmptyStrings='false'">
  37. <xsl:text disable-output-escaping="yes">
  38. return false;
  39. </xsl:text>
  40. </xsl:when>
  41. <xsl:otherwise>
  42. <xsl:text disable-output-escaping="yes">
  43. return true;
  44. </xsl:text>
  45. </xsl:otherwise>
  46. </xsl:choose>
  47. <xsl:text disable-output-escaping="yes">
  48. }
  49. </xsl:text>
  50. </script>
  51. <!-- Add prompt control javascript and style sheets -->
  52. <xsl:call-template name="getPromptHeadIncludes">
  53. <xsl:with-param name="promptLocale" select="$promptLocale"/>
  54. <xsl:with-param name="promptContentLocale" select="$contentLocale"/>
  55. </xsl:call-template>
  56. <xsl:apply-templates select="/Document/styleOptions"/>
  57. <xsl:apply-templates select="DATA"/>
  58. </xsl:template>
  59. <!-- only run these in Query Studio -->
  60. <xsl:template name="startPage"/>
  61. <xsl:template name="dropIndicators"/>
  62. <!-- used in selection -->
  63. <xsl:template name="GenEventHandlers"/>
  64. </xsl:stylesheet>