V5environment_sdk.xsl 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: rsvp
  5. (C) Copyright IBM Corp. 2005, 2020
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  10. <!--
  11. The parameters that the report server will possible set
  12. htmlFragment - generate a fragment (no head or body tags) when 'true'
  13. Xhtml - generate XHTML when 'true'
  14. promptSupport - include prompt support when 'true'
  15. drillSupport - include drill support 'inline', 'yes', 'no'
  16. sdkDrillSupport - include authored drill support for SDK apps when 'true'
  17. chartSupport - include chart support when 'true'
  18. chartSrc - the tag used to select the proper chart path
  19. reportTitle - the report title
  20. email - produce email compatible output (self contained) when 'true'
  21. mht - produce mht compatible output when 'true'
  22. httpUserAgent - the browser type when available
  23. gatewayPath - the gateway from the configuration
  24. basePath - the base path portion of the gateway
  25. contentLocale - the run locale
  26. productLocale - the product locale
  27. skin - the search path for prompt control skins in report output.
  28. interactiveOutput - the output is being returned in the SOAP response and is
  29. assumed to be consumed by a browser.
  30. firstPage - indicates this is the first page of a set making up a single document when 'true'
  31. lastPage - indicates this is the last page of a set making up a single document when 'true'
  32. testMode - running in test mode.
  33. chartEnableTransparencyIE - whether to enable special IE workarounds for chart image transparency
  34. hyperlinkButtonNewWindow - whether to open hyperlinks in a new window or the same window
  35. encoding - the encoding the output is being produced in.
  36. pageNumber - the current page number
  37. pageNumberString - the current page number as a human readable, localized string (for accessibility)
  38. strict - whether to generate strict XHTML or not, also includes some accessibility content
  39. generateContextData
  40. accessible - enable 'Section 508'-type accessibility on the output
  41. namespaceID - default value blank, can be overridden as a xslParameter run option.
  42. appSupport - include application support when 'true'
  43. generatorID - Version ID of output generator.
  44. PRMT_isBidiEnabled - Indicate if the bidi support is enabled for this output
  45. skipLinkText - localized text used in the link allowing users to skip the report header and jump to the report body
  46. headerLabelText - text used to tell visually impaired users they are viewing a list header row
  47. footerLabelText - text used to tell visually impaired users they are viewing a list footer row
  48. mobile - produce mobile compatible output when 'true'
  49. reportSectionLabelText - for accessibility, label the main application section with this
  50. emptyCellLabelText - for accessibility, label empty cells with this text
  51. physicalPageNumber - The physical page number. 0 means undefined.
  52. This is not necesarily the same as the PageNumber() report function.
  53. physicalPageCount - physical number of pages in the report. 0 means undefined.
  54. This is not necesarily the same as the PageCount() report function.
  55. contextBlock - Specifies the element from which context data is retrieved i.e. Block or BlockOptmz.
  56. chartUsesSvg - Specifies whether or not chart images should be handled by an svg or not.
  57. pageCacheIndex - Page index (1 based) which can be used to maintain client side page cache. 0 indicates page is not cacheable.
  58. Negative values are an indication that navigation is going from the last page backwards. -1 means the last page
  59. -2 is the before last page. From the client's point of view, pressing next page should always add 1 to the pageCacheIndex
  60. and previous page should subtract 1.
  61. resetPageCache - Boolean indicating whether or not page cache should be cleared.
  62. -->
  63. <xsl:param name="htmlFragment">false</xsl:param>
  64. <xsl:param name="Xhtml">false</xsl:param>
  65. <xsl:param name="promptSupport">false</xsl:param>
  66. <xsl:param name="drillSupport">no</xsl:param>
  67. <xsl:param name="sdkDrillSupport">true</xsl:param>
  68. <xsl:param name="chartSupport">false</xsl:param>
  69. <xsl:param name="chartSrc">src</xsl:param>
  70. <xsl:param name="reportTitle"></xsl:param>
  71. <xsl:param name="email">false</xsl:param>
  72. <xsl:param name="mht">false</xsl:param>
  73. <xsl:param name="httpUserAgent"></xsl:param>
  74. <xsl:param name="gatewayPath"></xsl:param>
  75. <xsl:param name="basePath"></xsl:param>
  76. <xsl:param name="contentLocale">en-us</xsl:param>
  77. <xsl:param name="productLocale">en-us</xsl:param>
  78. <xsl:param name="contentLanguage">en</xsl:param>
  79. <xsl:param name="skin">../prompting/reportskin</xsl:param>
  80. <xsl:param name="interactiveOutput">false</xsl:param>
  81. <xsl:param name="firstPage">true</xsl:param>
  82. <xsl:param name="lastPage">true</xsl:param>
  83. <xsl:param name="testMode">false</xsl:param>
  84. <xsl:param name="chartEnableTransparencyIE">true</xsl:param>
  85. <xsl:param name="hyperlinkButtonNewWindow">true</xsl:param>
  86. <xsl:param name="encoding">utf-8</xsl:param>
  87. <xsl:param name="pageNumber">1</xsl:param>
  88. <xsl:param name="pageNumberString">Page 1</xsl:param>
  89. <xsl:param name="strict">false</xsl:param>
  90. <xsl:param name="generateContextData">false</xsl:param>
  91. <xsl:param name="accessible">false</xsl:param>
  92. <xsl:param name="namespaceID">" "</xsl:param>
  93. <xsl:param name="appSupport">false</xsl:param>
  94. <xsl:param name="generatorID"></xsl:param>
  95. <xsl:param name="PRMT_isBidiEnabled">false</xsl:param>
  96. <xsl:param name="skipLinkText">Skip to main report content</xsl:param>
  97. <xsl:param name="headerLabelText">Header Row</xsl:param>
  98. <xsl:param name="footerLabelText">Footer Row</xsl:param>
  99. <xsl:param name="mobile">false</xsl:param>
  100. <xsl:param name="reportSectionLabelText">Report</xsl:param>
  101. <xsl:param name="emptyCellLabelText">Empty cell</xsl:param>
  102. <xsl:param name="physicalPageNumber">0</xsl:param>
  103. <xsl:param name="physicalPageCount">0</xsl:param>
  104. <xsl:param name="contextBlock">Block</xsl:param>
  105. <xsl:param name="chartUsesSvg">false</xsl:param>
  106. <xsl:param name="pageCacheIndex">0</xsl:param>
  107. <xsl:param name="resetPageCache">true</xsl:param>
  108. <xsl:param name="quirks">false</xsl:param>
  109. <xsl:param name="PRMT_allowEmptyStrings">true</xsl:param>
  110. <xsl:param name="PRMT_allowEmptyStringTextHeader">true</xsl:param>
  111. <!--
  112. The followings are global parameters and variables required for the XSLT transformations but NOT set by RSVP.
  113. -->
  114. <!-- Root folder for JavaScript and CSS files. -->
  115. <xsl:param name="webRoot">..</xsl:param>
  116. <!-- Browser detection variables. -->
  117. <xsl:variable name="isIE" select="contains($httpUserAgent, 'MSIE') or (contains($httpUserAgent, 'Mozilla/5') and contains($httpUserAgent, 'Trident'))"/>
  118. <xsl:variable name="isIE5" select="contains($httpUserAgent, 'MSIE 5.0')"/>
  119. <xsl:variable name="isIE55" select="contains($httpUserAgent, 'MSIE 5.5')"/>
  120. <xsl:variable name="isIE6" select="contains($httpUserAgent, 'MSIE 6')"/>
  121. <xsl:variable name="isNS6" select="contains($httpUserAgent, 'Mozilla/5') and (contains($httpUserAgent, 'Gecko') or contains($httpUserAgent, 'Netscape'))"/>
  122. <xsl:variable name="isNewViewer">false</xsl:variable>
  123. </xsl:stylesheet>