triggerUI.xslt 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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, 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. <xsl:stylesheet version="1.0"
  13. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  15. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  16. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  17. xmlns:dt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/templates/"
  18. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  19. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  20. xmlns:dc="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/confirm/1/"
  21. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  22. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  23. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  24. xmlns:out="dummy-uri"
  25. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  26. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  27. xmlns:srt="http://developer.cognos.com/schemas/xts/srt">
  28. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  29. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  30. <xsl:template match="srt:triggerUI">
  31. <utml:input type="hidden" name="m_sp_type" value="trigger" utml:update="false"/>
  32. <utml:input type="hidden" name="m_triggerType" value="authoredReport" utml:update="false"/>
  33. <utml:input type="hidden" name="m_sp_triggerName" utml:update="false">
  34. <utml:value>
  35. <out:value-of select="$triggerName"/>
  36. </utml:value>
  37. </utml:input>
  38. <lyt:layout style="1">
  39. <lyt:section>
  40. <dp:choice>
  41. <dp:section1>
  42. <utml:input type="checkbox" name="m_sp_active" value="true" utml:default-condition="key('env-param','m_sp_active')" onclick="if(window.on_changed_schedule_changed)on_changed_schedule_changed();"/>
  43. </dp:section1>
  44. <dp:section2>
  45. <xts:string id="IDS_PROP_SCHED_INACTIVE"/>
  46. </dp:section2>
  47. </dp:choice>
  48. </lyt:section>
  49. </lyt:layout>
  50. <lyt:layout style="2">
  51. <lyt:section>
  52. <dp:input>
  53. <dp:section1><xts:string id="IDS_PROP_SCHED_RECURRENCE_LABEL"/></dp:section1>
  54. <dp:section2>
  55. <dp:text><xts:string id="IDS_PROP_SCHED_RECURRENCE_EVENT"/></dp:text>
  56. </dp:section2>
  57. </dp:input>
  58. <dp:input>
  59. <dp:section1><xts:string id="IDS_OTHERRUN_EVENT_NAME"/></dp:section1>
  60. <dp:section2>
  61. <dp:text><out:value-of select="$triggerName"/></dp:text>
  62. </dp:section2>
  63. </dp:input>
  64. </lyt:section>
  65. <out:if test="$the-object/cm:defaultTriggerDescription != '' or $the-object/cm:base/*/defaultTriggerDescription != ''">
  66. <lyt:section>
  67. <dp:input>
  68. <dp:section1>&#160;</dp:section1>
  69. <dp:section2>&#160;</dp:section2>
  70. </dp:input>
  71. <dp:choice title="IDS_OTHERRUN_EVENT_DESC">
  72. <dp:section1 wrap="true">
  73. <dp:text>
  74. <out:choose>
  75. <out:when test="$the-object/cm:defaultTriggerDescription != ''">
  76. <out:value-of select="$the-object/cm:defaultTriggerDescription "/>
  77. </out:when>
  78. <out:otherwise>
  79. <out:value-of select="$the-object/cm:base/*/cm:defaultTriggerDescription "/>
  80. </out:otherwise>
  81. </out:choose>
  82. </dp:text>
  83. </dp:section1>
  84. </dp:choice>
  85. </lyt:section>
  86. </out:if>
  87. </lyt:layout>
  88. </xsl:template>
  89. <xsl:template match="*">
  90. <xsl:copy>
  91. <xsl:copy-of select="@*"/>
  92. <xsl:apply-templates/>
  93. </xsl:copy>
  94. </xsl:template>
  95. </xsl:stylesheet>