123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ASV
- (C) Copyright IBM Corp. 2005, 2015
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/subscribe.xml,messages/portal.xml, messages/portalRL.xml" requiredCapability="canUseConditionalSubscriptions">
- <!--
- Normal formlogic predicate
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="logicsheets/formlogic_init.xslt"/>
- <!--
- ===============================================================================================
- callMorphlet - Calls the appropriate morphlet using the passed in params which will return
- markup to be displayed or the expected results
- ===============================================================================================
- -->
- <xts:block id="callMorphlet" processor="XSLT" dependency="formlogic_init" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' ]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:req-params="http://developer.cognos.com/schemas/request/params" exclude-result-prefixes="xsl dlgctrl xtsext req-params">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xsl:variable name="controller_state" select="/root/env/param[@name='controller_state']"/>
- <xts:sequence>
- <xsl:choose>
- <xsl:when test="starts-with($controller_state,'email')">
- <dlgctrl:XTS2Request>
- <dlgctrl:target>/portal/emailOptions/email_options.xts</dlgctrl:target>
- <dlgctrl:stackName>email_options</dlgctrl:stackName>
- <req-params:param name="options">
- <xsl:value-of select="key('env-param','deliveryOptions')"/>
- </req-params:param>
- <req-params:param name="titlePrefix">
- <xts:string id="IDS_EMAIL_OPTIONS_TITLE_PREFIX"/>
- </req-params:param>
- <req-params:param name="titlePostfix">
- <xsl:value-of select="key('env-param','m_name')"/>
- </req-params:param>
- <req-params:param name="defaultTarget">subscribe/conditional_subscribe2.xts</req-params:param>
- <req-params:param name="burst">
- <xsl:value-of select="key('env-param','m_ro_burst')"/>
- </req-params:param>
- <req-params:param name="subscription">
- <xsl:text>true</xsl:text>
- </req-params:param>
- <!-- default task name incase the email subject is empty -->
- <req-params:param name="taskName">
- <xsl:text><xts:string id="IDS_CUSTSUB_DEFAULT_EMAIL_TASKNAME"/></xsl:text>
- </req-params:param>
- </dlgctrl:XTS2Request>
- </xsl:when>
- <xsl:when test="starts-with($controller_state,'task')">
- <dlgctrl:XTS2Request>
- <dlgctrl:target>/subscribe/taskOptions/task_options.xts</dlgctrl:target>
- <dlgctrl:stackName>task_options</dlgctrl:stackName>
- <req-params:param name="taskOptions">
- <xsl:value-of select="key('env-param','taskOptions')"/>
- </req-params:param>
- <req-params:param name="titlePrefix">
- <xts:string id="IDS_TASK_OPTIONS_TITLE_PREFIX"/>
- </req-params:param>
- <req-params:param name="titlePostfix">
- <xsl:value-of select="key('env-param','m_name')"/>
- </req-params:param>
- <req-params:param name="defaultTarget">subscribe/conditional_subscribe2.xts</req-params:param>
- <req-params:param name="burst">
- <xsl:value-of select="key('env-param','m_ro_burst')"/>
- </req-params:param>
- <req-params:param name="subscription">
- <xsl:text>true</xsl:text>
- </req-params:param>
- <!-- default task name incase the email subject is empty -->
- <req-params:param name="taskName">
- <xsl:text><xts:string id="IDS_CUSTSUB_DEFAULT_EMAIL_TASKNAME"/></xsl:text>
- </req-params:param>
- <!-- have to say that we're a notification -->
- <req-params:param name="taskType">
- <xsl:text>notification</xsl:text>
- </req-params:param>
- </dlgctrl:XTS2Request>
- </xsl:when>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- processReponse - Process the response from the callMorphlet block and either displays
- the markup or processes the results\
- ===============================================================================================
- -->
- <xts:block id="processEmailResponse" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="callMorphlet" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' and starts-with(/root/env/param[@name='controller_state'],'email')]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- processReponse - Process the response from the callMorphlet block and either displays
- the markup or processes the results
- ===============================================================================================
- -->
- <xts:block id="processTaskResponse" path="/subscribe/taskOptions/logicsheets/process_task_options.xslt" processor="XSLT" dependency="processEmailResponse" type="exec" condition=".[ /root/env/param[@name='controller_state'] != '' and starts-with(/root/env/param[@name='controller_state'],'task')]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaultEmailOptions - If no delivery options where save on the object and it's the
- first time we hit this page then generate defaults - can't use the portal default - we have to give a defaultSubject
- ===============================================================================================
- -->
- <xts:block id="generateDefaultEmailOptions" path="subscribe/blocks/generateDefaultSubscribeEmailOptions.xslt" processor="XSLT" dependency="processTaskResponse" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='deliveryOptions'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- processDefaultEmailOptions - If no delivery options where save on the object and it's the
- first time we hit then process the default delivery options.
- ===============================================================================================
- -->
- <xts:block id="processDefaultEmailOptions" path="/portal/emailOptions/logicsheets/process_email_options.xslt" processor="XSLT" dependency="generateDefaultEmailOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='deliveryOptions'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- generateDefaultTaskOptions - If no task options where save on the object and it's the
- first time we hit this page then generate defaults - can't use the portal default - we have to give a defaultSubject
- ===============================================================================================
- -->
- <xts:block id="generateDefaultTaskOptions" path="subscribe/blocks/generateDefaultSubscribeTaskOptions.xslt" processor="XSLT" dependency="processDefaultEmailOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='taskOptions'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- processDefaultTaskOptions - If no task options where save on the object and it's the
- first time we hit then process the default task options.
- ===============================================================================================
- -->
- <xts:block id="processDefaultTaskOptions" path="/subscribe/taskOptions/logicsheets/process_task_options.xslt" processor="XSLT" dependency="generateDefaultTaskOptions" type="exec" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and not(/root/env/param[@name='taskOptions'])]" mandatory="false">
- <xts:logicsheet path="logicsheets/presentation/dialog/controller-templates.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/templates.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- </xts:block>
- <!--
- ===============================================================================================
- make sure that we have valid default news variables
- ===============================================================================================
- -->
- <xts:block id="generateDefaultNewsitemOptions" path="subscribe/blocks/generateDefaultNewsitemOptions.xslt" processor="XSLT" type="exec" dependency="processDefaultTaskOptions" condition=".[(not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='') and (not(/root/env/param[@name='m_subData_newsitem_options']) or /root/env/param[@name='m_subData_newsitem_options']='')]" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
- </xts:block>
- <!--
- ===============================================================================================
- Query for information about the account - we need an email address to allow email delivery
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init generateDefaultNewsitemOptions" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false">
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <!-- get some new stuff -->
- <xts:append>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="'~'"/>
- </cm:search>
- <cm:properties>
- <cm:property name="email"/>
- <cm:property name="notificationEMail"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- <newsitemPath>
- <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
- <send:request provider="cm">
- <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="/root/env/param[@name='m_subData_newsitem_path']"/>
- </cm:search>
- <cm:properties>
- <cm:property name="searchPath"/>
- <cm:property name="ancestors"/>
- <cm:property name="defaultName"/>
- </cm:properties>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </newsitemPath>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- update the taskName
- ===============================================================================================
- -->
- <xts:block id="updateTaskNames" path="subscribe/blocks/updateTaskNames.xslt" processor="XSLT" type="exec" dependency="getContent" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" mandatory="false"/>
- <!--
- ===============================================================================================
- build CM structure for icons
- ===============================================================================================
- -->
- <xts:block id="buildIconStructure" processor="XSLT" type="exec" dependency="updateTaskNames" mandatory="true">
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" exclude-result-prefixes="xsl xts cm">
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <icon name="memo">
- <cm:baseClass>
- <cm:objectClass>memo</cm:objectClass>
- <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_EMAIL"/></cm:defaultName>
- </cm:baseClass>
- </icon>
- <icon name="newsitem">
- <cm:baseClass>
- <cm:objectClass>shortcutRSSTask</cm:objectClass>
- <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_NEWSITEM"/></cm:defaultName>
- </cm:baseClass>
- </icon>
- <icon name="humanTask">
- <cm:baseClass>
- <cm:objectClass>humanTask</cm:objectClass>
- <cm:iconURI>./ps/portal/images/icon_notification.gif</cm:iconURI>
- <cm:defaultName><xts:string id="IDS_CUSTSUB_DELIVERY_TASK"/></cm:defaultName>
- </cm:baseClass>
- </icon>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- formatski block
- ===============================================================================================
- -->
- <xts:block id="format" dependency="buildIconStructure" mode="output" condition=".[not(/root/env/param[@name='controller_state']) or /root/env/param[@name='controller_state']='']" processor="XSLT" type="exec" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <xts:logicsheet path="subscribe/logicsheets/rdsad.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/centralabout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:rdsad="http://developer.cognos.com/schemas/xts/rdsad/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:ca="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/centralabout/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df ca utml qsdlg xtsext rdsad cf cp cm">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- get the title -->
- <xsl:variable name="wizardTitle">
- <xts:string id="IDS_CUSTSUB_TITLE"/>
- </xsl:variable>
- <xsl:variable name="new-general-title">
- <xts:string id="IDS_CUSTSUB_DELIVERY_TITLE">
- <xts:param name="wizardTitle">
- <xsl:value-of select="$wizardTitle"/>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:variable name="mname">
- <xsl:text>subscribe/conditional_subscribe2.xts</xsl:text>
- </xsl:variable>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text>
- <dp:page longTitle="$new-general-title">
- <dp:meta>
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
- <meta name="Copyright" content="Copyright (C) 2008 Cognos Incorporated. All Rights Reserved."/>
- <meta name="Trademark" content="Cognos and the Cognos logo are trademarks of Cognos Incorporated."/>
- </dp:meta>
- <dp:script>
- <script type="text/javascript">
- function doCancel() {
- window.close();
- }
-
- function validate()
- {
- var valid = deliveryValidate();
- if (valid) {
- // disable unused delivery checkboxes
- removeDeliveryCBS();
- }
- return valid;
- }
-
- </script>
- <!-- Help system -->
- <pf:help context="HID_MY_WATCH_ITEMS"/>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclusion-list><xsl:value-of select="' m_subData_newsitem m_subData_n '"/>could</utml:exclusion-list>
- <utml:input type="hidden" name="ifrmcmd" value="create" utml:update="false"/>
- <utml:input type="hidden" name="h_CAM_action" value="generateTC" utml:update="false"/>
- <utml:input type="hidden" name="controller_state" value="" utml:update="false"/>
- <dp:header>
- <!-- header titles-->
- <dp:title>
- <xsl:value-of select="$new-general-title"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_CUSTSUB_DELIVERY_INTRO"/>
- </dp:description>
- <dp:close>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='backURL']">
- <a href="{/root/env/param[@name = 'backURL']}">
- <dp:closeMarker/>
- </a>
- </xsl:when>
- <xsl:otherwise>
- <a href="javascript:doCancel()">
- <dp:closeMarker/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </dp:close>
- </dp:header>
- <lyt:layout style="1">
- <lyt:section>
- <dp:list title="IDS_CUSTSUB_NOTIFICATION_TYPE_TITLE" width="100%">
- <dp:section>
- <dp:hint wrap="wrap">
- <xts:string id="IDS_CUSTSUB_NOTIFICATION_TYPE_HINT"/>
- </dp:hint>
- </dp:section>
- <dp:section width="100%">
- <div>
- <!-- email -->
- <rdsad:deliveryDisplay>
- <display>
- <option name="email">
- <visible>
- <xsl:choose>
- <xsl:when test="key('session-param','e_hp')!='' and key('session-param','e_hp')!='CAMID("::Anonymous")' and (/root/*[local-name()='queryResponse']/*[local-name()='account']/*[local-name()='email'] != '' or /root/*[local-name()='queryResponse']/*[local-name()='account']/*[local-name()='notificationEMail']/*[local-name()='value'] != '') " >
- <xsl:text>true</xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>false</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </visible>
- <icon role="img">
- <xsl:for-each select="/root/icon[@name='memo']/*[local-name()='baseClass']">
- <xsl:call-template name="gen-icon"/>
- </xsl:for-each>
- </icon>
- <title>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='emailSummary'] != ''">
- <xsl:value-of select="/root/env/param[@name='emailSummary']"/>
- </xsl:when>
- <xsl:when test="not($emailAsAttachment or $emailAsURL)">
- <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/></xsl:text>
- </xsl:when>
- <xsl:when test="$emailAsAttachment and not($emailAsURL)">
- <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_REPORT"/></xsl:text>
- </xsl:when>
- <xsl:when test="not($emailAsAttachment) and $emailAsURL">
- <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_URL"/></xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text><xts:string id="IDS_OTHERRUN_DELIVERY_BOTH"/></xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </title>
- <description>
- <text><xsl:value-of select="/root/env/param[@name='emailDescription']"/></text>
- </description>
- <link>
- <href>document.pform.ps_nav_op.value='maintain';document.pform.controller_state.value='email|markup'</href>
- <target><xsl:value-of select="$mname"/></target>
- <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
- </link>
- </option>
- <!--</xsl:if>-->
- <option name="newsitem">
- <visible><xsl:text>true</xsl:text></visible>
- <icon>
- <xsl:for-each select="/root/icon[@name='newsitem']/*[local-name()='baseClass']">
- <xsl:call-template name="gen-icon"/>
- </xsl:for-each>
- </icon>
- <title>
- <xsl:text><xts:string id="IDS_CUSTSUB_PUBLISH_NEWSITEM"/></xsl:text>
- </title>
- <description>
- <path>
- <img width="20" height="16" align="absmiddle" src="{$skin_images}path.gif">
- <xsl:attribute name="alt">
- <xsl:value-of select="$newsitem_path_link"/>
- </xsl:attribute>
- </img>
- </path>
- <text>
- <xsl:text> </xsl:text>
- <xsl:text/>
- <xsl:value-of select="/root/env/param[@name='m_subData_newsitem_headline']"/>
- <xsl:text/>
- </text>
- </description>
- <link>
- <href>document.pform.ps_nav_op.value='push';</href>
- <target><xsl:text>subscribe/conditional_newsitem.xts</xsl:text></target>
- <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
- <ariaLabel><xts:string id="IDS_NEWSITEM_OPTIONS_A11Y_LABEL"/></ariaLabel>
- </link>
- </option>
- <option name="task">
- <visible><xsl:text>true</xsl:text></visible>
- <icon>
- <xsl:for-each select="/root/icon[@name='humanTask']/*[local-name()='baseClass']">
- <xsl:call-template name="gen-icon"/>
- </xsl:for-each>
- </icon>
- <title>
- <xsl:text><xts:string id="IDS_CUSTSUB_PUBLISH_TASK"/></xsl:text>
- </title>
- <description>
- <text><xsl:value-of select="/root/env/param[@name='taskDescription']"/></text>
- </description>
- <link>
- <href>document.pform.ps_nav_op.value='maintain';document.pform.controller_state.value='task|markup';</href>
- <target><xsl:value-of select="$mname"/></target>
- <text><xts:string id="IDS_OTHERRUN_SET_EMAIL"/></text>
- <ariaLabel><xts:string id="IDS_NOTIFICATION_OPTIONS_A11Y_LABEL"/></ariaLabel>
- </link>
- </option>
- </display>
- </rdsad:deliveryDisplay>
- </div>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <!-- page footer -->
- <dp:footer>
- <xsl:variable name="back-target">
- <!-- we know where we're going -->
- <xsl:text>subscribe/conditional_subscribe1.xts</xsl:text>
- </xsl:variable>
- <xsl:variable name="next-target">
- <!-- we know where we're going -->
- <xsl:text>subscribe/conditional_subscribe3.xts</xsl:text>
- </xsl:variable>
- <df:button df:id="IDS_CANCEL" df:style="href">
- <df:href>
- <xsl:choose>
- <xsl:when test="/root/env/param[@name='backURL']">
- <xsl:value-of select="/root/env/param[@name='backURL']"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>javascript:doCancel();</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </df:href>
- </df:button>
- <df:button df:id="IDS_BACK" df:style="maintain">
- <df:target>
- <xsl:value-of select="$back-target"/>
- </df:target>
- </df:button>
- <df:button df:id="IDS_NEXT" df:style="maintain" utml:validate="true">
- <df:target>
- <xsl:value-of select="$next-target"/>
- </df:target>
- </df:button>
- <df:button df:id="IDS_FINISH"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <pf:gen-icon/>
- </xsl:stylesheet>
- </xts:block>
- <!-- Debug -->
- <xts:block id="debug" type="exec" dependency="format" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html">
- <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
- <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="xsl dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
- <dbg:templates/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|