123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2008
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/" xmlns:agsro="http://developer.cognos.com/schemas/xts/agsro" xmlns:agsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/ags/dialog/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:out="dummy-uri" exclude-result-prefixes="xsl dp xts utml agsro agsdlg cf">
- <xsl:output method="xml" encoding="UTF-8" indent="no"/>
- <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
- <xsl:template match="agsro:run_options">
- <out:template name="render_run_options">
- <out:if test="key('env-param','m_ro_saveOutput') !='' or key('env-param','m_ro_saveAsPath') !=''">
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:choose>
- <out:when test="not(key('env-param','save_how')) or key('env-param','save_how')='report'">
- <out:choose>
- <out:when test="$jobDefinition">
- <out:text>
- <xts:string id="IDS_OTHERRUN_SAVE_REPORTS"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_SAVE_REPORT_CONFIRM"/>
- </out:text>
- <out:value-of select="' '"/>
- <!-- Determine if the current path points to the personal folder space (We need a session element to make this determination) -->
- <out:variable name="path" select="/root/cm:queryResponse/cm:queryReply[2]/*/cm:searchPath"/>
- <!-- For personal folder destinations, render the path starting at the directory/namespace/account/folder ancestor. -->
- <out:variable name="rootPath">
- <out:choose>
- <out:when test="starts-with($path,'~') or starts-with($path,key('session-param', 'e_hp'))">
- <out:value-of select="'~/folder'"/>
- </out:when>
- <out:otherwise>
- <out:value-of select="'/content'"/>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:queryResponse/cm:queryReply[2]/*/cm:ancestors</cf:param>
- <cf:param name="familymember">cm:queryResponse/cm:queryReply[2]/*/cm:defaultName</cf:param>
- <cf:param name="home">
- <out:value-of select="$rootPath"/>
- </cf:param>
- </cf:do-the-path-link>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_SAVE_NEW_ENTRY_CONFIRM"/>
- </out:text>
- <out:value-of select="' '"/>
- <out:value-of select="key('env-param', 'saveAsPathText')"/>
- <out:value-of select="' > '"/>
- <out:value-of select="key('env-param', 'm_ro_saveAsName')"/>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- print -->
- <out:if test="key('env-param','m_ro_print') != ''">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:choose>
- <out:when test="$jobDefinition">
- <out:text>
- <xts:string id="IDS_CONFIRMATION_PRINT_REPORTS"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_CONFIRMATION_PRINT_REPORT"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- <out:value-of select="' '"/>
- <out:value-of select="key('env-param','m_ro_printerAddress')"/>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- email -->
- <out:if test="key('env-param','m_ro_email') != ''">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:call-template name="render-email"/>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <out:choose>
- <!-- if we're dealing with a job -->
- <out:when test="key('env-param','m_class') = 'jobDefinition' and /root/steps/cm:queryResponse/cm:jobStepDefinition/*">
- <dp:section1>
- <br/>
- <xts:string id="IDS_CONFIRMATION_JOB_STEP_SECTION"/>
- </dp:section1>
- <dp:section2/>
- <out:for-each select="/root/steps/cm:queryResponse/cm:jobStepDefinition">
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <xts:string id="IDS_CONFIRMATION_JOB_STEP">
- <xts:param name="stepNumber">
- <out:value-of select="position()"/>
- </xts:param>
- <xts:param name="stepName">
- <out:value-of select="cm:stepObject/*/cm:defaultName"/>
- </xts:param>
- </xts:string>
- </dp:section1>
- <dp:section2/>
- <!-- burst -->
- <out:variable name="stepSummary">
- <out:if test="cm:runOptions/cm:runOption[cm:name='burst']/cm:value='true' or (not(cm:runOptions/cm:runOption[cm:name='burst']/cm:value) and key('env-param','m_ro_burst')='true' and *[local-name()='stepObject']/*/*[local-name()='canBurst']='true')">
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:text>
- <xts:string id="IDS_OTHERRUN_BURST"/>
- </out:text>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- format -->
- <out:if test="cm:runOptions/cm:runOption[cm:name='outputFormat'] or (/root/env/param[starts-with(@name,'m_ro_outputFormat') and not(contains(@name,'HTML'))][. != ''] or
- (key('env-param', 'm_ro_outputF_HTML_Type')))">
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT"/>
- </out:text>
- <out:value-of select="' '"/>
- <out:choose>
- <out:when test="cm:runOptions/cm:runOption[cm:name='outputFormat']">
- <out:for-each select="cm:runOptions/cm:runOption[cm:name='outputFormat']/cm:items/cm:item">
- <out:sort select="."/>
- <out:call-template name="render-format">
- <out:with-param name="format" select="."/>
- <out:with-param name="outputPageDefinition" select="/root/steps/cm:queryResponse/cm:jobStepDefinition/cm:runOptions/cm:runOption[cm:name='outputPageDefinition']/cm:value"/>
- <out:with-param name="outputPageOrientation" select="/root/steps/cm:queryResponse/cm:jobStepDefinition/cm:runOptions/cm:runOption[cm:name='outputPageOrientation']/cm:value"/>
- </out:call-template>
- </out:for-each>
- </out:when>
- <out:otherwise>
- <out:for-each select="/root/env/param[starts-with(@name,'m_ro_outputFormat')][. != '']">
- <out:sort select="."/>
- <out:call-template name="render-format">
- <out:with-param name="format" select="."/>
- <out:with-param name="outputF_HTML_Type" select="key('env-param', 'm_ro_outputF_HTML_Type')"/>
- <out:with-param name="outputPageDefinition" select="key('env-param','m_ro_outputPageDefinition')"/>
- <out:with-param name="outputPageOrientation" select="key('env-param','m_ro_outputPageOrientation')"/>
- </out:call-template>
- </out:for-each>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- language -->
- <out:if test="cm:runOptions/cm:runOption[cm:name='outputLocale'] or key('env-param', 'm_ro_outputLocale')">
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:text>
- <xts:string id="IDS_OTHERRUN_LANGUAGE"/>
- </out:text>
- <out:value-of select="' '"/>
- <out:choose>
- <out:when test="cm:runOptions/cm:runOption[cm:name='outputLocale']">
- <out:for-each select="cm:runOptions/cm:runOption[cm:name='outputLocale']/cm:items/cm:item">
- <out:sort select="."/>
- <out:variable name="locale" select="."/>
- <out:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$locale]/displayName"/>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:for-each>
- </out:when>
- <out:otherwise>
- <out:for-each select="key('env-param', 'm_ro_outputLocale')">
- <out:sort select="."/>
- <out:variable name="locale" select="."/>
- <out:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$locale]/displayName"/>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:for-each>
- </out:otherwise>
- </out:choose>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- Prompt information -->
- <out:for-each select="*[local-name()='parameters']/*[local-name()='parameterValue']">
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:value-of select="*[local-name()='name']"/>
- <out:text>
- <xts:string id="IDS_LIST_START"/>
- </out:text>
- <out:apply-templates mode="render-values"/>
- </dp:section1>
- <dp:section2/>
- </out:for-each>
- <out:for-each select="*[local-name()='credentialParameters']/credential">
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <out:call-template name="render-credential">
- <out:with-param name="credential" select="."/>
- <out:with-param name="pos" select="position()"/>
- </out:call-template>
- </dp:section1>
- <dp:section2/>
- </out:for-each>
- </out:variable>
- <out:choose>
- <out:when test="$stepSummary!=''">
- <out:copy-of select="$stepSummary"/>
- </out:when>
- <out:otherwise>
- <dp:section1>
- <img height="10" width="25">
- <out:attribute name="src">
- <out:value-of select="$webcontent"/>/images/space.gif</out:attribute>
- </img>
- <xts:string id="IDS_PROP_JOB_NO_RUN_OPTIONS"/>
- </dp:section1>
- <dp:section2/>
- </out:otherwise>
- </out:choose>
- </out:for-each>
- </out:when>
- <!-- we must be dealing with a report -->
- <out:otherwise>
- <!-- Burst -->
- <out:if test="key('env-param','m_ro_burst') = 'true'">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:text>
- <xts:string id="IDS_OTHERRUN_BURST"/>
- </out:text>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- Formats -->
- <out:if test="/root/env/param[starts-with(@name,'m_ro_outputFormat')][. != '']">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT"/>
- </out:text>
- <out:value-of select="' '"/>
- <out:for-each select="/root/env/param[starts-with(@name,'m_ro_outputFormat')][. != '']">
- <out:sort select="."/>
- <out:call-template name="render-format">
- <out:with-param name="format" select="."/>
- <out:with-param name="outputF_HTML_Type" select="key('env-param', 'm_ro_outputF_HTML_Type')"/>
- <out:with-param name="outputPageDefinition" select="key('env-param','m_ro_outputPageDefinition')"/>
- <out:with-param name="outputPageOrientation" select="key('env-param','m_ro_outputPageOrientation')"/>
- </out:call-template>
- </out:for-each>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- Languages -->
- <out:if test="key('env-param', 'm_ro_outputLocale')">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:text>
- <xts:string id="IDS_OTHERRUN_LANGUAGE"/>
- </out:text>
- <out:value-of select="' '"/>
- <out:for-each select="key('env-param', 'm_ro_outputLocale')">
- <out:sort select="."/>
- <out:variable name="locale" select="."/>
- <out:value-of select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=$locale]/displayName"/>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:for-each>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <!-- Check if this report can be attached to email tasks-->
- <out:if test="key('env-param','m_ao_availableAsEmailAttachment')">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:text>
- <xts:string id="IDS_OTHERRUN_ENABLE_ATTACHMENTS"/>
- </out:text>
- </dp:section1>
- <dp:section2/>
- </out:if>
- <out:variable name="parameters" select="./parameters"/>
- <out:variable name="credentials" select="./credentialParameters"/>
- <!-- Prompt information -->
- <out:if test="$parameters">
- <out:for-each select="$parameters/*[local-name()='parameterValue']">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:value-of select="*[local-name()='name']"/>
- <out:text>
- <xts:string id="IDS_LIST_START"/>
- </out:text>
- <out:apply-templates mode="render-values"/>
- </dp:section1>
- <dp:section2/>
- </out:for-each>
- </out:if>
- <out:if test="$credentials">
- <out:for-each select="$credentials/credential">
- <br/>
- <dp:section1>
- <out:copy-of select="$spacer"/>
- <out:call-template name="render-credential">
- <out:with-param name="credential" select="."/>
- <out:with-param name="pos" select="position()"/>
- </out:call-template>
- </dp:section1>
- <dp:section2/>
- </out:for-each>
- </out:if>
- </out:otherwise>
- </out:choose>
- </out:template>
- <out:template name="render-email">
- <out:variable name="emailAsAttachment" select="key('env-param', 'm_ro_emailAsAttachment') = 'true'"/>
- <out:variable name="emailAsURL" select="key('env-param', 'm_ro_emailAsURL') = 'true'"/>
- <out:variable name="bursting">
- <out:choose>
- <out:when test="(key('env-param','m_ro_burst') = 'true') or (/root/steps/cm:queryResponse/cm:jobStepDefinition/cm:runOptions/cm:runOption[cm:name='burst']/cm:value='true')">true</out:when>
- <out:otherwise>false</out:otherwise>
- </out:choose>
- </out:variable>
- <out:choose>
- <out:when test="$jobDefinition">
- <out:choose>
- <out:when test="not($emailAsAttachment or $emailAsURL)">
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_NOTIFY_MULTIPLE_REPORTS"/>
- </out:text>
- </out:when>
- <out:when test="$emailAsAttachment and not($emailAsURL)">
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_REPORTS"/>
- </out:text>
- </out:when>
- <out:when test="not($emailAsAttachment) and $emailAsURL">
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_URL_MULTIPLE_REPORTS"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_BOTH_MULTIPLE_REPORTS"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="not($emailAsAttachment or $emailAsURL)">
- <out:choose>
- <out:when test="$bursting='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_DELIVERY_NOTIFY"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_NOTIFY"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="$emailAsAttachment and not($emailAsURL)">
- <out:choose>
- <out:when test="$bursting='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_DELIVERY_REPORT"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_REPORT"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:when test="not($emailAsAttachment) and $emailAsURL">
- <out:choose>
- <out:when test="$bursting='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_DELIVERY_URL"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_URL"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$bursting='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_DELIVERY_BOTH"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_EMAIL_BOTH"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- </out:otherwise>
- </out:choose>
- <out:if test="$bursting = 'false' or key('env-param', 'run_with_options_job')='true'">
- <out:value-of select="' '"/>
- <out:choose>
- <out:when test="/root/env/param[@name='emailDescription']">
- <out:value-of select="/root/env/param[@name='emailDescription']"/>
- </out:when>
- <out:otherwise>
- <xts:string id="IDS_OTHERRUN_EMAIL_NO_RECIPIENTS"/>
- </out:otherwise>
- </out:choose>
- </out:if>
- </out:template>
- <out:template name="render-format">
- <out:param name="format"/>
- <out:param name="outputF_HTML_Type" select="'true'"/>
- <out:param name="outputPageDefinition" select="''"/>
- <out:param name="outputPageOrientation" select="''"/>
- <out:choose>
- <out:when test="$format='HTML' and $outputF_HTML_Type='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_HTML"/>
- </out:text>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- <out:when test="$format='HTMLFragment' and $outputF_HTML_Type='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_HTMLFRAGMENT"/>
- </out:text>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- <out:when test="$format='XHTML' and $outputF_HTML_Type='true'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_XHTML"/>
- </out:text>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- <out:when test="$format='PDF'">
- <out:choose>
- <out:when test="$outputPageDefinition != '' and $outputPageOrientation!=''">
- <out:variable name="orientation">
- <out:choose>
- <out:when test="$outputPageOrientation = 'portrait'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_PORTRAIT"/>
- </out:text>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_LANDSCAPE"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- </out:variable>
- <out:variable name="pageDefinition">
- <out:value-of select="/root/cm:queryResponse/cm:queryReply/cm:pageDefinition[cm:searchPath=$outputPageDefinition]/cm:defaultName"/>
- </out:variable>
- <xts:string id="IDS_OTHERRUN_FORMAT_PDF_WITH_OPTIONS">
- <xts:param name="orientation">
- <out:value-of select="$orientation"/>
- </xts:param>
- <xts:param name="pageDefinition">
- <out:value-of select="$pageDefinition"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:otherwise>
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_PDF"/>
- </out:text>
- </out:otherwise>
- </out:choose>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- <out:when test="$format='CSV'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_CSV"/>
- </out:text>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- <out:when test="$format='XML'">
- <out:text>
- <xts:string id="IDS_OTHERRUN_FORMAT_XML"/>
- </out:text>
- <out:if test="position() != last()">
- <out:text>, </out:text>
- </out:if>
- </out:when>
- </out:choose>
- </out:template>
- <out:template name="render-credential">
- <out:param name="credential" select="."/>
- <out:param name="pos"/>
- <out:variable name="dsConnections" select="/root/dataSources/cm:queryResponse/cm:queryReply/cm:dataSourceConnection"/>
- <dp:section>
- <dp:input>
- <dp:section1>
- <xts:string id="IDS_VIEW_PROMPTS_DATASOURCE"/>
- </dp:section1>
- <dp:section2>
- <xts:string id="IDS_VIEW_PROMPTS_CONNECTION">
- <xts:param name="datasource_name">
- <out:value-of select="$dsConnections[$pos]/cm:parent/cm:dataSource/cm:defaultName"/>
- </xts:param>
- <xts:param name="connection_name">
- <out:value-of select="$dsConnections[$pos]/cm:defaultName"/>
- </xts:param>
- </xts:string>
- <out:choose>
- <out:when test="$credential/dataSourceSignon != ''">
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$dsConnections[$pos]/../following-sibling::*[1]/cm:dataSourceSignon/cm:defaultName"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="$credential/username != '' and $credential/password != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_USERID_PASSWORD"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="$credential/username != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_USERID_ONLY"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- <out:when test="$credential/password != ''">
- <out:variable name="signon_name">
- <xts:string id="IDS_VIEW_PROMPTS_PASSWORD_ONLY"/>
- </out:variable>
- <xts:string id="IDS_VIEW_PROMPTS_SIGNON">
- <xts:param name="signon_name">
- <out:value-of select="$signon_name"/>
- </xts:param>
- </xts:string>
- </out:when>
- </out:choose>
- </dp:section2>
- </dp:input>
- </dp:section>
- </out:template>
- <out:template match="*[local-name()='simpleParmValueItem']" mode="render-values">
- <out:choose>
- <out:when test="*[local-name()='display'] != ''">
-  '<out:value-of select="*[local-name()='display']"/>',
- </out:when>
- <out:otherwise>
-  <xts:string id="IDS_VIEW_PROMPTS_NO_VALUE"/>,
- </out:otherwise>
- </out:choose>
- </out:template>
- <out:template match="*[local-name()='simpleParmValueItem'][last()]" mode="render-values">
- <out:choose>
- <out:when test="*[local-name()='display'] != ''">
-  '<out:value-of select="*[local-name()='display']"/>'
- </out:when>
- <out:otherwise>
-  <xts:string id="IDS_VIEW_PROMPTS_NO_VALUE"/>
- </out:otherwise>
- </out:choose>
- </out:template>
- <out:template match="*[local-name()='boundRangeParmValueItem' or local-name()='unboundedEndRangeParmValueItem' or local-name()='unboundedStartRangeParmValueItem']" mode="render-values">
- <out:choose>
- <out:when test="*[local-name()='start']/*[local-name()='display'] != ''">
-  '<out:value-of select="*[local-name()='start']/*[local-name()='display']"/>'
- </out:when>
- <out:when test="*[local-name()='end']/*[local-name()='display'] != ''">
-  '<out:value-of select="*[local-name()='end']/*[local-name()='display']"/>'
- </out:when>
- <out:otherwise>
-  <xts:string id="IDS_VIEW_PROMPTS_NO_VALUE"/>
- </out:otherwise>
- </out:choose>
- <out:if test="not(position() = last())">
- <out:text>,</out:text>
- </out:if>
- </out:template>
- <out:template match="*[local-name()='hierarchicalParmValueItem']" mode="render-values">
- <out:param name="ancestorText" select="./*[local-name()='value']/*[local-name()='display']"/>
- <out:param name="position" select="'first'"/>
- <out:choose>
- <out:when test="*[local-name()='hierarchicalParmValueItem']">
- <out:for-each select="./*[local-name()='hierarchicalParmValueItem']">
- <out:variable name="pos">
- <out:choose>
- <out:when test="$position = 'first' and position() = '1'">first</out:when>
- <out:otherwise>not_first</out:otherwise>
- </out:choose>
- </out:variable>
- <out:apply-templates select="." mode="render-values">
- <out:with-param name="ancestorText" select="concat($ancestorText, ' > ' ,*[local-name()='value']/*[local-name()='display'])"/>
- <out:with-param name="position" select="$pos"/>
- </out:apply-templates>
- </out:for-each>
- </out:when>
- <out:otherwise>
- <out:choose>
- <out:when test="$position='not_first'">
- <br/>
- </out:when>
- <out:otherwise> </out:otherwise>
- </out:choose>
- <out:text>'</out:text>
- <out:value-of select="$ancestorText"/>
- <out:text>'</out:text>
- </out:otherwise>
- </out:choose>
- </out:template>
- <out:template match="text()" mode="render-values"/>
- </xsl:template>
-
- <!--
- * - This next template is required to copy all other elements into the result.
- -->
- <xsl:template match="*">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- </xsl:stylesheet>
|