specify_PDF_options.xts 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475
  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, 2014
  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. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true">
  13. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  14. <!--
  15. ===============================================================================================
  16. getContent - get our data from Content Manager
  17. ===============================================================================================
  18. -->
  19. <xts:block id="getContent" nodelist="" dependency="formlogic_init" processor="XSLT" type="exec" mandatory="false">
  20. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  21. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  22. <xsl:stylesheet version="1.0"
  23. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  24. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  25. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  26. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  27. exclude-result-prefixes="xsl xtsext cml send">
  28. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  29. <cml:object-predicates/>
  30. <xsl:template match="/">
  31. <!-- get all the pageDefinitions for page size drop down -->
  32. <xts:sequence>
  33. <xts:append>
  34. <pageDefinition>
  35. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  36. <send:request provider="cm">
  37. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  38. <query xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  39. <search>
  40. <xsl:text>/configuration/pageDefinition</xsl:text>
  41. <xsl:value-of select="$visibility-predicate"/>
  42. </search>
  43. <properties>
  44. <property name="displaySequence"/>
  45. <property name="defaultName"/>
  46. <property name="searchPath"/>
  47. </properties>
  48. <sortBy>
  49. <sort name="displaySequence" order="ascending"/>
  50. </sortBy>
  51. </query>
  52. </xts:transform>
  53. </send:request>
  54. </xts:transform>
  55. </pageDefinition>
  56. </xts:append>
  57. </xts:sequence>
  58. </xsl:template>
  59. </xsl:stylesheet>
  60. </xts:block>
  61. <!--
  62. ===============================================================================================
  63. format - render the page
  64. ===============================================================================================
  65. -->
  66. <xts:block id="format" mode="output" processor="XSLT" type="exec" dependency="getContent" mimeType="text/html">
  67. <!-- portal specific information -->
  68. <xts:logicsheet path="logicsheets/portal.xsl"/>
  69. <!-- get the new theme stuff -->
  70. <xts:logicsheet path="logicsheets/presentation/dialog/ui-templates.xsl"/>
  71. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  72. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  73. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  74. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  75. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  76. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  77. <xts:logicsheet path="logicsheets/validation.xslt"/>
  78. <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  79. <xsl:stylesheet version="1.0"
  80. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  81. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  82. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  83. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  84. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  85. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  86. xmlns:ut="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/ui-templates/"
  87. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  88. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  89. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  90. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  91. exclude-result-prefixes="pf lyt dp cf cp df utml xtsext cm ut">
  92. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  93. <!-- Global template variables -->
  94. <pf:variables/>
  95. <ut:passwordField/>
  96. <xsl:variable name="mname" select="'specify_PDF_options.xts'"/>
  97. <!-- start the output -->
  98. <xsl:template match="/root">
  99. <pf:dojo>
  100. <require>com.ibm.cognos.ps.pdfOptions</require>
  101. </pf:dojo>
  102. <xsl:variable name="objName">
  103. <xsl:choose>
  104. <xsl:when test="key('env-param','m_new_class') and key('env-param','m_new_class') = 'jobDefinition'"><xts:string id="IDS_ADDENTRIES_TITLE_NEW_JOB"/></xsl:when>
  105. <xsl:when test="key('env-param','step_default_name')"><xsl:value-of select="key('env-param','step_default_name')"/></xsl:when>
  106. <xsl:otherwise><xsl:value-of select="key('env-param', 'm_name')"/></xsl:otherwise>
  107. </xsl:choose>
  108. </xsl:variable>
  109. <xsl:variable name="browserTitle"><xts:string id="IDS_PDF_TITLE"><xts:param name="objName"><span lang="{$contentLocale}"><xsl:value-of select="$objName"/></span></xts:param></xts:string></xsl:variable>
  110. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  111. <dp:script>
  112. <script language="javascript">
  113. var pdfOptions = null;
  114. function init() {
  115. <!--
  116. include an array to be used in pdfOptions.js. NOTE: if these ID's change, you also need to update pdfOptions.js
  117. -->
  118. pdfOptions = new com.ibm.cognos.ps.pdfOptions(window,document.pform, {
  119. 'IDS_PDF_ERROR_NO_OPEN_PASSWORD':'<xts:string id="IDS_PDF_ERROR_NO_OPEN_PASSWORD" encode="javascript"/>',
  120. 'IDS_PDF_ERROR_NO_OPTION_PASSWORD' :'<xts:string id="IDS_PDF_ERROR_NO_OPTION_PASSWORD" encode="javascript"/>',
  121. 'IDS_PDF_ERROR_OPTION_PASSWORD_NO_OPTIONS': '<xts:string id="IDS_PDF_ERROR_OPTION_PASSWORD_NO_OPTIONS" encode="javascript"/>',
  122. 'IDS_ERR_0003_PASSWORD_VERIF_FAILED':'<xts:string id="IDS_ERR_0003_PASSWORD_VERIF_FAILED" encode="javascript"/>'
  123. });
  124. }
  125. function validate() {
  126. return pdfOptions.validatePDFOptions();
  127. }
  128. </script>
  129. </dp:script>
  130. <dp:meta>
  131. <pf:meta/>
  132. <!-- Standard meta tags -->
  133. </dp:meta>
  134. <pf:help/>
  135. <utml:form name="pform" method="post" action="{$gateway}">
  136. <utml:exclusion-list>
  137. <xsl:value-of select="' confirm_m_pdf_ownerPassword_runOption changed_m_pdf_ownerPassword_runOption confirm_m_pdf_userPassword_runOption changed_m_pdf_userPassword_runOption m_pdf_userPassword_runOption m_pdf_ownerPassword_runOption '"/>
  138. </utml:exclusion-list>
  139. <!-- header -->
  140. <dp:header>
  141. <dp:title>
  142. <xsl:copy-of select="$browserTitle"/>
  143. </dp:title>
  144. <dp:description>
  145. <xts:string id="IDS_PDF_INTRO"/>
  146. </dp:description>
  147. </dp:header>
  148. <!-- body -->
  149. <lyt:layout style="1">
  150. <lyt:section>
  151. <dp:list>
  152. <!-- orientation -->
  153. <dp:section><dp:label for="m_ro_outputPageOrientation"><xts:string id="IDS_OTHERRUN_ORIENTATION"/></dp:label></dp:section>
  154. <dp:section>
  155. <utml:select name="m_ro_outputPageOrientation" id="m_ro_outputPageOrientation" utml:track="true">
  156. <utml:default-value>
  157. <xsl:choose>
  158. <xsl:when test="key('env-param', 'm_ro_outputPageOrientation')">key('env-param', 'm_ro_outputPageOrientation')</xsl:when>
  159. <xsl:otherwise>default</xsl:otherwise>
  160. </xsl:choose>
  161. </utml:default-value>
  162. <utml:option>
  163. <utml:value>default</utml:value>
  164. <xts:string id="IDS_OTHERRUN_ORIENTATION_PAPERSIZE_DEFAULT"/>
  165. </utml:option>
  166. <utml:option>
  167. <utml:value>portrait</utml:value>
  168. <xts:string id="IDS_OTHERRUN_PORTRAIT"/>
  169. </utml:option>
  170. <utml:option>
  171. <utml:value>landscape</utml:value>
  172. <xts:string id="IDS_OTHERRUN_LANDSCAPE"/>
  173. </utml:option>
  174. </utml:select>
  175. </dp:section>
  176. <dp:section>
  177. <img height="5" width="1" src="{$webcontent}/images/space.gif"/>
  178. </dp:section>
  179. <!-- page size -->
  180. <xsl:if test="/root/pageDefinition//*[local-name()='pageDefinition']">
  181. <dp:section><dp:label for="m_ro_outputPageDefinition"><xts:string id="IDS_OTHERRUN_PAPERSIZE"/></dp:label></dp:section>
  182. <dp:section>
  183. <utml:select name="m_ro_outputPageDefinition" id="m_ro_outputPageDefinition" utml:track="true">
  184. <utml:default-value>
  185. <xsl:if test="not(key('env-param','m_ro_outputPageDefinition'))">default</xsl:if>
  186. </utml:default-value>
  187. <utml:option>
  188. <utml:value>default</utml:value>
  189. <xts:string id="IDS_OTHERRUN_ORIENTATION_PAPERSIZE_DEFAULT"/>
  190. </utml:option>
  191. <xsl:for-each select="/root/pageDefinition//*[local-name()='pageDefinition']">
  192. <utml:option>
  193. <xsl:if test="string(cm:searchPath) = key('env-param','m_ro_outputPageDefinition')">
  194. <xsl:attribute name="selected">selected</xsl:attribute>
  195. </xsl:if>
  196. <utml:value><xsl:value-of select="cm:searchPath"/></utml:value>
  197. <xsl:value-of select="cm:defaultName"/>
  198. </utml:option>
  199. </xsl:for-each>
  200. </utml:select>
  201. </dp:section>
  202. </xsl:if>
  203. </dp:list>
  204. </lyt:section>
  205. </lyt:layout>
  206. <!-- Access controls -->
  207. <lyt:layout style="1" title="IDS_PDF_ACCESS_CONTROL" border="yes">
  208. <lyt:section>
  209. <!-- password for open report -->
  210. <dp:choice>
  211. <dp:section1>
  212. <utml:input type="checkbox" id="checkbox_password_open" name="checkbox_password_open" value="true" onclick="pdfOptions.onClickPasswordCheckbox(this);" aria-labelledby="lbl_checkbox_password_open">
  213. <xsl:if test="key('env-param','checkbox_password_open') != 'true' or key('env-param','preserve_pdf_userPwd') = 'true'">
  214. <xsl:attribute name="checked">true</xsl:attribute>
  215. </xsl:if>
  216. </utml:input>
  217. </dp:section1>
  218. <dp:section2 id="lbl_checkbox_password_open">
  219. <xts:string id="IDS_PDF_OPEN_REPORT_PASSWORD"/>
  220. </dp:section2>
  221. <dp:section3>
  222. <!-- disable the input if there is no encrypted password-->
  223. <xsl:call-template name="passwordFields">
  224. <xsl:with-param name="fieldName" select="'m_pdf_userPassword_runOption'"/>
  225. <xsl:with-param name="isDisabled" select="not(key('env-param','m_pdf_userPassword_runOption')) and key('env-param','preserve_pdf_userPwd')='false'"/>
  226. <xsl:with-param name="preservePasswordField" select="'preserve_pdf_userPwd'"/>
  227. <xsl:with-param name="groupLabelId" select="'lbl_checkbox_password_open'"/>
  228. </xsl:call-template>
  229. </dp:section3>
  230. </dp:choice>
  231. <!-- password for access options -->
  232. <dp:choice>
  233. <dp:section1>
  234. <utml:input type="checkbox" id="checkbox_access_options" name="checkbox_access_options" value="true" onclick="pdfOptions.onClickPasswordCheckbox(this);" aria-labelledby="lbl_checkbox_access_options">
  235. <xsl:if test="key('env-param','checkbox_access_options') != 'true' or key('env-param','preserve_pdf_ownerPwd') = 'true'">
  236. <xsl:attribute name="checked">true</xsl:attribute>
  237. </xsl:if>
  238. </utml:input>
  239. </dp:section1>
  240. <dp:section2 id="lbl_checkbox_access_options">
  241. <xts:string id="IDS_PDF_ACCESS_OPTIONS_PASSWORD"/>
  242. </dp:section2>
  243. <dp:section3>
  244. <xsl:variable name="title"><xts:string id="IDS_PDF_CONFIRM_ACCESS_OPTIONS_TITLE"/></xsl:variable>
  245. <xsl:variable name="label"><xts:string id="IDS_PDF_CONFIRM_ACCESS_OPTIONS_LABEL"/></xsl:variable>
  246. <dp:list>
  247. <!-- access options password -->
  248. <dp:section>
  249. <!-- disable the input if there is no encrypted password-->
  250. <xsl:call-template name="passwordFields">
  251. <xsl:with-param name="fieldName" select="'m_pdf_ownerPassword_runOption'"/>
  252. <xsl:with-param name="isDisabled" select="not(key('env-param','m_pdf_ownerPassword_runOption')) and key('env-param','preserve_pdf_ownerPwd')='false'"/>
  253. <xsl:with-param name="preservePasswordField" select="'preserve_pdf_ownerPwd'"/>
  254. <xsl:with-param name="groupLabelId" select="'lbl_checkbox_access_options'"/>
  255. </xsl:call-template>
  256. </dp:section>
  257. <dp:section>
  258. <img height="5" width="1" src="{$webcontent}/images/space.gif"/>
  259. </dp:section>
  260. <!-- allow printing -->
  261. <dp:section>
  262. <dp:label for="m_pdf_allowPrintQuality"><xts:string id="IDS_PDF_ALLOW_PRINTING"/></dp:label>
  263. </dp:section>
  264. <dp:section>
  265. <utml:select name="m_pdf_allowPrintQuality" id="m_pdf_allowPrintQuality">
  266. <utml:default-value>none</utml:default-value>
  267. <utml:option value="none">
  268. <xts:string id="IDS_PDF_PRINTING_NONE"/>
  269. </utml:option>
  270. <utml:option value="low">
  271. <xts:string id="IDS_PDF_PRINTING_LOW"/>
  272. </utml:option>
  273. <utml:option value="lowOrHigh">
  274. <xts:string id="IDS_PDF_PRINTING_HIGH"/>
  275. </utml:option>
  276. </utml:select>
  277. </dp:section>
  278. <dp:section>
  279. <img height="5" width="1" src="{$webcontent}/images/space.gif"/>
  280. </dp:section>
  281. </dp:list>
  282. <!-- Allow changes -->
  283. <dp:choice title="IDS_PDF_ALLOW_CHANGES">
  284. <!-- modify the document's content -->
  285. <dp:section1>
  286. <utml:input type="checkbox" name="m_pdf_allowModifications" id="m_pdf_allowModifications" value="true"/>
  287. </dp:section1>
  288. <dp:section2 for="m_pdf_allowModifications">
  289. <xts:string id="IDS_PDF_ALLOW_CHANGES_MODIFY"/>
  290. </dp:section2>
  291. <!-- modify text annotations -->
  292. <dp:section1>
  293. <utml:input type="checkbox" name="m_pdf_allowAnnotations" id="m_pdf_allowAnnotations" value="true"/>
  294. </dp:section1>
  295. <dp:section2 for="m_pdf_allowAnnotations">
  296. <xts:string id="IDS_PDF_ALLOW_CHANGES_ADD_TEXT"/>
  297. </dp:section2>
  298. <!-- fill in forms -->
  299. <dp:section1>
  300. <utml:input type="checkbox" name="m_pdf_allowFieldCompletion" id="m_pdf_allowFieldCompletion" value="true"/>
  301. </dp:section1>
  302. <dp:section2 for="m_pdf_allowFieldCompletion">
  303. <xts:string id="IDS_PDF_ALLOW_CHANGES_FILL_FORMS"/>
  304. </dp:section2>
  305. <!-- assemble the document -->
  306. <dp:section1>
  307. <utml:input type="checkbox" name="m_pdf_allowAssembly" id="m_pdf_allowAssembly" value="true"/>
  308. </dp:section1>
  309. <dp:section2 for="m_pdf_allowAssembly">
  310. <xts:string id="IDS_PDF_ALLOW_CHANGES_ASSEMBLE"/>
  311. </dp:section2>
  312. </dp:choice>
  313. <!-- allow content extractions -->
  314. <dp:choice title="IDS_PDF_ALLOW_CONTENT_EXTRACTION">
  315. <!-- extract text -->
  316. <dp:section1>
  317. <utml:input type="checkbox" name="m_pdf_allowAccessibilitySupport" id="m_pdf_allowAccessibilitySupport" value="true"/>
  318. </dp:section1>
  319. <dp:section2 for="m_pdf_allowAccessibilitySupport">
  320. <xts:string id="IDS_PDF_ALLOW_CONTENT_EXTRACTION_EXTRACT"/>
  321. </dp:section2>
  322. <!-- copy text, images and other -->
  323. <dp:section1>
  324. <utml:input type="checkbox" name="m_pdf_allowContentCopy" id="m_pdf_allowContentCopy" value="true"/>
  325. </dp:section1>
  326. <dp:section2 for="m_pdf_allowContentCopy">
  327. <xts:string id="IDS_PDF_ALLOW_CONTENT_EXTRACTION_COPY"/>
  328. </dp:section2>
  329. </dp:choice>
  330. </dp:section3>
  331. </dp:choice>
  332. </lyt:section>
  333. </lyt:layout>
  334. <!-- footer -->
  335. <dp:footer>
  336. <df:button df:id="IDS_OK" utml:validate="true" df:style="stack-down-save"/>
  337. <xsl:choose>
  338. <xsl:when test="key('env-param', 'ps_nav_stack') and not(key('env-param', 'ps_nav_stack') = '') ">
  339. <df:button df:id="IDS_CANCEL" df:style="stack-down"/>
  340. </xsl:when>
  341. <xsl:otherwise>
  342. <df:button df:id="IDS_CANCEL" df:style="back-url"/>
  343. </xsl:otherwise>
  344. </xsl:choose>
  345. </dp:footer>
  346. </utml:form>
  347. </dp:page>
  348. </xsl:template>
  349. <!-- create the password and validate password fields -->
  350. <xsl:template name="passwordFields">
  351. <xsl:param name="fieldName"/>
  352. <xsl:param name="isDisabled"/>
  353. <xsl:param name="preservePasswordField"/>
  354. <xsl:param name="groupLabelId"/>
  355. <xsl:variable name="fieldValue">
  356. <xsl:choose>
  357. <xsl:when test="key('env-param',string($preservePasswordField))='true'">********</xsl:when>
  358. <xsl:otherwise><xsl:value-of select="key('env-param',string($fieldName))"/></xsl:otherwise>
  359. </xsl:choose>
  360. </xsl:variable>
  361. <xsl:variable name="hidden-control-name" select="concat('changed_', $fieldName)"/>
  362. <input type="hidden" name="{$hidden-control-name}" id="{$hidden-control-name}">
  363. <xsl:choose>
  364. <xsl:when test="/root/env/param[@name = $hidden-control-name]">
  365. <xsl:attribute name="value">
  366. <xsl:value-of select="/root/env/param[@name = $hidden-control-name]"/>
  367. </xsl:attribute>
  368. </xsl:when>
  369. <xsl:otherwise>
  370. <xsl:attribute name="value">0</xsl:attribute>
  371. </xsl:otherwise>
  372. </xsl:choose>
  373. </input>
  374. <dp:list>
  375. <dp:section><dp:label id="lbl_{$fieldName}"><xts:string id="IDS_PASSWORD"/></dp:label></dp:section>
  376. <dp:section>
  377. <input name="{$fieldName}" id="{$fieldName}" type="password" size="53" onkeydown="pdfOptions.doOnKeyDown(this);">
  378. <xsl:attribute name="aria-labelledby">
  379. <xsl:if test="$groupLabelId !=''">
  380. <xsl:value-of select="concat($groupLabelId,' ')"/>
  381. </xsl:if>
  382. <xsl:value-of select="concat('lbl_',$fieldName)"/>
  383. </xsl:attribute>
  384. <xsl:attribute name="value">
  385. <xsl:choose>
  386. <xsl:when test="key('env-param',string($preservePasswordField))='true'">********</xsl:when>
  387. <xsl:otherwise><xsl:value-of select="$fieldValue"/></xsl:otherwise>
  388. </xsl:choose>
  389. </xsl:attribute>
  390. <xsl:if test="$isDisabled">
  391. <xsl:attribute name="disabled"/>
  392. </xsl:if>
  393. </input>
  394. </dp:section>
  395. <dp:section><dp:label id="lbl_confirm_{$fieldName}"><xts:string id="IDS_CONFIRM_PASSWORD"/></dp:label></dp:section>
  396. <dp:section>
  397. <input name="confirm_{$fieldName}" id="confirm_{$fieldName}" type="password" size="53" onkeydown="pdfOptions.doOnKeyDown(this);">
  398. <xsl:attribute name="aria-labelledby">
  399. <xsl:if test="$groupLabelId !=''">
  400. <xsl:value-of select="concat($groupLabelId,' ')"/>
  401. </xsl:if>
  402. <xsl:value-of select="concat('lbl_confirm_',$fieldName)"/>
  403. </xsl:attribute>
  404. <xsl:attribute name="value">
  405. <xsl:choose>
  406. <xsl:when test="key('env-param',string($preservePasswordField))='true'">********</xsl:when>
  407. <xsl:otherwise><xsl:value-of select="$fieldValue"/></xsl:otherwise>
  408. </xsl:choose>
  409. </xsl:attribute>
  410. <xsl:if test="$isDisabled">
  411. <xsl:attribute name="disabled"/>
  412. </xsl:if>
  413. </input>
  414. </dp:section>
  415. </dp:list>
  416. </xsl:template>
  417. </xsl:stylesheet>
  418. </xts:block>
  419. <!--
  420. ===============================================================================================
  421. debug - display debug information
  422. ===============================================================================================
  423. -->
  424. <xts:block id="debug" dependency="format" condition=".[/root/session/param[@name='debug']='1']" type="exec" mode="output" processor="XSLT" mandatory="false" mimeType="text/html">
  425. <!-- get the debug logic sheet -->
  426. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  427. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" exclude-result-prefixes="dbg">
  428. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  429. <xsl:template match="/">
  430. <dbg:dumpxml select="/root"/>
  431. </xsl:template>
  432. </xsl:stylesheet>
  433. </xts:block>
  434. </xts:morphlet>