implementation.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cpscrn
  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. <implementation version="1.0" xmlns="http://developer.cognos.com/fragments/implementation/1/"
  13. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  14. xmlns:f="http://developer.cognos.com/fragments/1/"
  15. xmlns:fs="http://developer.cognos.com/fragments/types/1/"
  16. xmlns:val="http://developer.cognos.com/schemas/validator/1/"
  17. xmlns:fragment="urn:cognos:fragments:validator"
  18. xmlns:fragext="http://developer.cognos.com/fragments/extensions/1/"
  19. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  20. xsi:schemaLocation="http://developer.cognos.com/fragments/implementation/1/ ../../../schemas/implementation.xsd">
  21. <info>
  22. <f:title resourceName="IDS_PROP_DEFAULT_TITLE">HTML Source</f:title>
  23. </info>
  24. <meta>
  25. <f:globalValidator version="1.0">
  26. <val:parameter skipJavaScript="true">
  27. <val:name>formaction</val:name>
  28. <val:rule>
  29. <val:enumeration emptyValid="true">
  30. <val:list>edit,view,save,validate,cancel</val:list>
  31. </val:enumeration>
  32. </val:rule>
  33. </val:parameter>
  34. <val:parameter skipJavaScript="true">
  35. <val:name>removeLang</val:name>
  36. <val:ruleRef id="fragment:localeList"/>
  37. </val:parameter>
  38. </f:globalValidator>
  39. <f:modes>view</f:modes>
  40. <f:modes>edit</f:modes>
  41. <f:modes>help</f:modes>
  42. <f:windowStates>normal</f:windowStates>
  43. <f:windowStates>maximized</f:windowStates>
  44. <f:customProperties name="Description">
  45. <f:label resourceName="IDS_PROP_DEFAULT_TITLE">HTML Source</f:label>
  46. <f:hint resourceName="IDS_PROP_EDIT_HINT_TEXT">Specify the title and enter the HTML code for the web page to display</f:hint>
  47. <f:datatype>fragext:multilingualString</f:datatype>
  48. <f:validate>
  49. <val:name>Description</val:name>
  50. <val:ruleRef id="fragment:localizedString"/>
  51. </f:validate>
  52. </f:customProperties>
  53. <f:customProperties name="title">
  54. <f:label resourceName="IDS_PROP_TITLE_CAPTION">Title:</f:label>
  55. <f:hint/>
  56. <f:datatype>fragext:multlingualString</f:datatype>
  57. <f:default>
  58. <f:value/>
  59. </f:default>
  60. <f:validate>
  61. <val:namePattern><val:regex caseSensitive="false">^((p_)?title-([a-z\-]*)?)$</val:regex></val:namePattern>
  62. <val:ruleRef id="fragment:localizedString"/>
  63. </f:validate>
  64. </f:customProperties>
  65. <f:customProperties name="HTMLMarkup">
  66. <f:label resourceName="IDS_PROP_HTMLCODE_CAPTION">HTML Code:</f:label>
  67. <f:hint resourceName="IDS_PROP_HTMLCODE_HINT">Type the HTML code to display and validate.</f:hint>
  68. <f:datatype>fragext:multilingualString</f:datatype>
  69. <f:default>
  70. <f:value/>
  71. </f:default>
  72. <f:validate skipJavaScript="true">
  73. <val:namePattern><val:regex caseSensitive="false">^((p_)?HTMLMarkup-([a-z\-]*)?)$</val:regex></val:namePattern>
  74. <val:rule><val:type><val:string/></val:type></val:rule>
  75. </f:validate>
  76. </f:customProperties>
  77. </meta>
  78. <message source="/messages/pfutilitiesmsgs.xml"/>
  79. <stage processor="java" source="com.cognos.portal.fragment.server.pipeline.RequestConfigurationProcess" >
  80. <input name="included-config">
  81. <config xmlns="">
  82. <param name="contentLocales"/>
  83. <param name="webContent"/>
  84. </config>
  85. </input>
  86. <output name="configurationResponse" />
  87. </stage>
  88. <init processor="xts" source="/fragments/utilities/htmlviewer/logic.xts">
  89. <param name="requestCookies"/>
  90. <param name="preferences"/>
  91. <param name="busHeader"/>
  92. </init>
  93. <interaction processor="xslt" source="/utilities/htmlviewer/interaction.xslt">
  94. <param name="preferences"/>
  95. <input name="configurationResponse"/>
  96. </interaction>
  97. <render>
  98. <param name="preferences"/>
  99. <input name="configurationResponse"/>
  100. <input name="help">
  101. <help xmlns="">
  102. <helpIdRoot>HTML_SRC</helpIdRoot>
  103. </help>
  104. </input>
  105. <mode name="view">
  106. <transforms>
  107. <transform source="/utilities/htmlviewer/htmlview.xslt"/>
  108. </transforms>
  109. </mode>
  110. <mode name="edit">
  111. <transforms>
  112. <transform source="/utilities/htmlviewer/htmledit.xslt">
  113. <logicsheet source="/common/logic/portal-ui.xslt"/>
  114. <logicsheet source="/utilities/common/logic/localeSelector.xslt"/>
  115. </transform>
  116. <transform source="/utilities/common/layout.xslt"/>
  117. </transforms>
  118. <library type="text/javascript" href="$WEB$/fragments/common/languageselection.js"/>
  119. <library type="text/javascript" href="$WEB$/fragments/common/processFormItems.js"/>
  120. </mode>
  121. <mode name="help">
  122. <transforms>
  123. <transform source="/common/help.xslt">
  124. <logicsheet source="/common/logic/portal-ui.xslt"/>
  125. </transform>
  126. </transforms>
  127. </mode>
  128. </render>
  129. </implementation>