123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2014
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
- -->
- <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true" requiredCapability="canUseAdministrationPortal">
- <!--
- ===============================================================================================
- formlogic_init - standard form logic initialization
- ===============================================================================================
- -->
- <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
- <!--
- ===============================================================================================
- Control
- ===============================================================================================
- -->
- <xts:block id="control" processor="XSLT" type="exec" dependency="formlogic_init">
- <xts:logicsheet path="logicsheets/buslogic.xslt"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
- <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:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <send:variables/>
- <!-- add any theme variables -->
- <pf:variables/>
- <xsl:template match="root">
- <xts:sequence>
- <xts:replace select="/root/env/param[@name = 'm_packagesOp']">
- <param name="m_packagesOp">update-packages</param>
- </xts:replace>
- <xts:delete select="/root/env/param[@name='m_target_name' or @name='m_source_name']"/>
- <xts:append select="/root/env">
- <param name="m_target_name">
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name = 'target_rename'])), true())" disable-output-escaping="yes"/>
- </param>
- <param name="m_source_name">
- <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name = 'target_source_name'])), true())" disable-output-escaping="yes"/>
- </param>
- </xts:append>
- <xsl:if test="/root/env/param[@name='so.searchPath'] != ''">
- <xts:delete select="/root/env/param[@name='target_location']"/>
- <xts:append select="/root/env">
- <param name="target_location">
- <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
- </param>
- </xts:append>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <xts:block id="checkDelete" type="exec" mode="interpret" dependency="formlogic_init" processor="XSLT" condition=".[/root/env/param[starts-with(@name,'addlocales')]!='']" mandatory="false">
- <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:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" xmlns:x="x">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:for-each select="/root/env/param[starts-with(@name,'m_delete_locale_')]">
- <xsl:if test="not(string-length(.)=0)">
- <xsl:variable name="deloc" select="."/>
- <xsl:if test="/root/env/param[@name=concat('m_d_default_name_',$deloc)]">
- <xsl:variable name="nam" select="concat('m_d_default_name_',string($deloc))"/>
- <xts:delete select="/root/env/param[@name='{$nam}']"/>
- </xsl:if>
- <xsl:if test="/root/env/param[@name=concat('m_add_name_',$deloc)]">
- <xsl:variable name="nam" select="concat('m_add_name_',string($deloc))"/>
- <xts:delete select="/root/env/param[@name='{$nam}']"/>
- </xsl:if>
- <xsl:variable name="delthis" select="concat('m_delete_locale_',string($deloc))"/>
- <xts:delete select="/root/env/param[@name='{$delthis}']"/>
- </xsl:if>
- </xsl:for-each>
- <xts:delete select="/root/env/param[@name='addlocales']"/>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- Query for the default destination container
- ===============================================================================================
- -->
- <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init control">
- <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="/">
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='target_location'])!=''">
- <xsl:value-of select="/root/env/param[@name='target_location']"/>
- </xsl:when>
- <xsl:otherwise><xsl:value-of select="'/content'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xts:sequence>
- <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:requests>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search>
- <xsl:value-of select="$path"/>
- </cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="searchPath"/>
- <cm:property name="ancestors"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:query>
- <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:search><xsl:value-of select="/root/session/param[@name='e_hp']"/>/folder[permission("write") and permission("traverse")]</cm:search>
- <cm:properties>
- <cm:property name="defaultName"/>
- <cm:property name="permissions"/>
- <cm:property name="storeID"/>
- </cm:properties>
- </cm:query>
- </cm:requests>
- </cm:query>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- <xsl:variable name="passport">
- <xsl:value-of select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
- </xsl:variable>
-
- <xts:delete select="/root/env/param[@name='new_ancestors']"/>
- <xts:append select="/root/env">
- <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
- <param name="new_ancestors">
- <passport><xsl:value-of select="$passport"/></passport>
- <markup>
- <xts:transform name="XMLEncode">
- <ancestors xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']/*"/>
- <ancestorInfo xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='objectClass']"/>
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='searchPath']"/>
- <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='storeID']"/>
- <title><xts:transform name="XMLEncode"><xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='defaultName']"/></xts:transform></title>
- </ancestorInfo>
- </ancestors>
- </xts:transform>
- </markup>
- </param>
- </xts:transform>
- </xts:append>
-
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- <!--
- ===============================================================================================
- main
- ===============================================================================================
- -->
- <xts:block id="main" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="checkDelete control formlogic_init getContent">
- <!-- get the ContentManager logic sheet -->
- <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
- <!-- deployment packages part -->
- <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
- <xts:logicsheet path="logicsheets/portal.xsl"/>
-
- <!-- get the new theme stuff -->
- <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
- <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
-
- <!-- apply the form logic -->
- <xts:logicsheet path="logicsheets/formlogic.xslt"/>
- <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
- xmlns:ctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/controls/"
- 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: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:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
- xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
- exclude-result-prefixes="xsl cm cf cp pf df dp lyt ctrl cml bus utml">
-
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <!-- current file name -->
- <xsl:variable name="mname" select="'deployment_target_name.xts'"/>
- <!-- add any theme variables -->
- <pf:variables/>
- <!-- deployment templates -->
- <dpl:variables/>
- <!-- start the output -->
- <xsl:template match="/root">
- <xsl:variable name="browserTitle">
- <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TITLE">
- <xts:param name="specName">
- <span lang="{$contentLocale}"><xsl:value-of select="/root/env/param[@name = 'm_p_defaultName']"/></span>
- </xts:param>
- </xts:string>
- </xsl:variable>
- <xsl:text disable-output-escaping='yes'><!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
- <dp:meta>
- <pf:meta/> <!-- Standard meta tags -->
- </dp:meta>
- <dp:script>
- <pf:help context="HID_DEPLOY"/> <!-- Help system -->
- <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
- <script language="javascript">
- <xsl:variable name="deploymentTargetName"><xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TARGET" encode="javascript"/></xsl:variable>
- var MSG_ERR_NO_NAME = "<xts:string id="IDS_ERR_MANDATORY" encode="javascript"><xts:param name="field"><xsl:value-of select="$deploymentTargetName"/></xts:param></xts:string>";
- var MSG_ERR_NO_URI = "<xts:string id="IDS_PROP_ERR_NO_URI" encode="javascript"/>";
-
- function removeEntry(localeVal)
- {
- clearOut(localeVal);
- document.pform.m.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
- document.pform.ps_nav_op.value = "maintain";
- document.pform.submit();
- }
-
- function preTranslate()
- {
- // document.pform.m_return.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
- }
- <![CDATA[
- function validate()
- {
- var items = document.pform.elements.length;
- for (var i=0;i<items;i++)
- {
- itemName = document.pform.elements[i].name;
- if (itemName.substring(0,17) == "m_d_default_name_" && trim(document.pform.elements[i].value)=="")
- {
- alert(MSG_ERR_NO_NAME);
- document.pform.elements[i].focus();
- return false;
- }
- }
- return true;
- }
-
- function clearOut(localeVal)
- {
- var items = document.pform.elements.length;
- var cnt=0;
- for (var i=0; i<items; i++)
- {
- var len = document.pform.elements[i].name.length;
- var valen = localeVal.length;
- var nl = len-valen;
- if ( len > valen )
- {
- var x = document.pform.elements[i].name;
- if (x.substring(0,5)=="m_d_d" && x.substring(nl)==localeVal)
- {
- cnt +=1;
- document.pform.elements[i].disabled="true";
- if(cnt==3)
- return;
- }
- }
- }
- }
- ]]>
- </script>
- </dp:script>
- <utml:form name="pform" method="post" action="{$gateway}">
- <utml:exclude-prefix>
- <xsl:value-of select="'m_d_default'"/>
- </utml:exclude-prefix>
- <utml:exclusion-list>
- <xsl:for-each select="/root/env/param[starts-with(@name,'m_add_')]">
- <xsl:value-of select="concat(./@name,' ')"/>
- </xsl:for-each>
- <xsl:for-each select="/root/env/param[starts-with(@name,'m_delete_locale_')]">
- <xsl:value-of select="concat(./@name,' ')"/>
- </xsl:for-each>
- </utml:exclusion-list>
- <utml:input type="hidden" name="m_package_target_renamed" utml:update="false" value="true"/>
- <dp:header div="div">
- <dp:title>
- <xsl:copy-of select="$browserTitle"/>
- </dp:title>
- <dp:description>
- <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_DESCRIPTION"/>
- </dp:description>
- </dp:header>
-
- <!-- Current destination folder. -->
- <xsl:variable name="path">
- <xsl:choose>
- <xsl:when test="string(/root/env/param[@name='target_location'])!=''"><xsl:value-of select="/root/env/param[@name='target_location']"/></xsl:when>
- <xsl:otherwise><xsl:value-of select="'/content'"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <lyt:layout style="1" joinSection="yes">
- <lyt:section>
- <dp:list>
- <dp:section><dp:label><xts:string id="IDS_PROP_TARGET_LOCATION"/></dp:label></dp:section>
- <dp:section wrap="wrap">
- <dp:text valign="top" wrap="wrap">
- <xsl:variable name="rootPath">
- <xsl:value-of select="$defaultContentRoot"/>
- </xsl:variable>
- <cf:do-the-path-link>
- <cf:param name="familytree">cm:queryResponse/cm:queryReply[1]/*/cm:ancestors</cf:param>
- <cf:param name="familymember">cm:queryResponse/cm:queryReply[1]/*/cm:defaultName</cf:param>
- <cf:param name="home"><xsl:value-of select="$rootPath"/></cf:param>
- </cf:do-the-path-link>
- </dp:text>
- </dp:section>
- <dp:section>
- <dp:group>
- <dp:groupItem valign="top">
- <utml:a utml:op="maintain">
- <utml:target>
- <xsl:value-of select="$app"/>/select/select.xts<xsl:text/>
- </utml:target>
- <xsl:text/><xts:string id="IDS_PROP_TARGET_ANOTHER_FOLDER"/><xsl:text/>
- </utml:a>
- </dp:groupItem>
- </dp:group>
- </dp:section>
- </dp:list>
- <utml:input type="hidden" name="so.return.m" utml:update="false">
- <utml:value><xsl:value-of select="concat($app,'/',$mname)"/></utml:value>
- </utml:input>
- <utml:input type="hidden" name="so.select" utml:update="false">
- <utml:value>package.deploymentTarget</utml:value>
- </utml:input>
- <utml:input type="hidden" name="so.defaultLocation" utml:update="false">
- <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
- </utml:input>
- </lyt:section>
- </lyt:layout>
- <xsl:choose>
- <!-- no new entries were added -->
- <xsl:when test="not(/root/env/param[starts-with( @name, 'm_add_name_' )]) and not(/root/env/param[starts-with(@name, 'm_d_default_name_' )])">
- <xsl:call-template name="MLEntriesLayout">
- <xsl:with-param name="targetNames" select="/root/config/param[@name='locale']/locale[@type='contentLocale' and string(id)=/root/env/param[@name='m_target_name']/child::node()/child::node()/@xml:lang]"/>
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="MLEntriesLayout">
- <xsl:with-param name="targetNames" select="/root/config/param[@name='locale']/locale[@type='contentLocale' and ( string(concat('m_d_default_name_',id))=/root/env/param/@name or string(concat('m_add_name_',id))=/root/env/param/@name)]"/>
- <xsl:with-param name="form-read-only" select="$form-read-only"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- <lyt:layout style="1" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:text width="100%"/>
- <dp:link>
- <utml:a utml:op="stack-up" onclick="preTranslate();">
- <utml:target>
- <xsl:value-of select="$app"/>/add_multilingual.xts<xsl:text/>
- </utml:target>
- <xts:string id="IDS_PROP_NEW_MULTILINGUAL"/>
- </utml:a>
- </dp:link>
- </dp:section>
- </dp:list>
- </lyt:section>
- </lyt:layout>
- <dp:footer div="div">
- <df:button df:id="IDS_OK" df:style="stack-down-save" utml:validate="true"/>
- <df:button df:id="IDS_CANCEL" df:style="stack-down" onClick="javascript:document.pform.target_guid.value='';"/>
- </dp:footer>
- </utml:form>
- </dp:page>
- </xsl:template>
- <xsl:template name="MLEntriesLayout">
- <xsl:param name="targetNames"/>
- <xsl:param name="form-read-only"/>
- <xsl:variable name="cCount" select="count($targetNames)"/>
- <xsl:for-each select="$targetNames">
- <xsl:variable name="cL" select="id"/>
- <xsl:variable name="cFL" select="displayName"/>
- <xsl:variable name="cDTN">
- <xsl:choose>
- <xsl:when test="/root/env/param[@name=concat('m_d_default_name_',$cL)]">
- <xsl:value-of select="/root/env/param[@name=concat('m_d_default_name_',$cL)]"/>
- </xsl:when>
- <xsl:when test="/root/env/param[@name=concat('m_add_name_',$cL)]">
- <xsl:value-of select="/root/env/param[@name=concat('m_add_name_',$cL)]"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="/root/env/param[@name='m_target_name']/child::node()/child::node()[@xml:lang = $cL]"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="cDSN">
- <xsl:value-of select="/root/env/param[@name='m_source_name']/child::node()/child::node()[@xml:lang=$cL]"/>
- </xsl:variable>
-
- <lyt:layout style="1" border="yes">
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:input width="53%">
- <dp:section1><xts:string id="IDS_PROP_LANGUAGE"/></dp:section1>
- <dp:section2>
- <xsl:value-of select="$cFL"/>
- </dp:section2>
- </dp:input>
- <xsl:if test="$cCount != 1">
- <dp:link>
- <a>
- <xsl:attribute name="href">javascript:removeEntry('<xsl:value-of select="xtsext:javascriptencode($cL)"/>')</xsl:attribute>
- <xsl:attribute name="aria-label"><xts:string id="IDS_PROP_REMOVE_MULTILINGUAL_FOR"><xts:param name="langName"><xsl:value-of select="$cFL"/></xts:param></xts:string></xsl:attribute>
- <xts:string id="IDS_PROP_REMOVE_MULTILINGUAL"/>
- </a>
- </dp:link>
- </xsl:if>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <dp:list>
- <dp:section>
- <dp:label>
- <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_SOURCE"/>
- </dp:label>
- </dp:section>
- <dp:section>
- <dp:text>
- <xsl:value-of select="$cDSN"/>
- </dp:text>
- </dp:section>
- </dp:list>
- </lyt:section>
- <lyt:section>
- <dp:input>
- <dp:section1 id="lbl_m_d_default_name_{$cL}"><xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TARGET"/></dp:section1>
- <dp:section2>
- <utml:input type="text" size="58" aria-labelledby="lbl_m_d_default_name_{$cL}">
- <utml:name>m_d_default_name_<xsl:value-of select="$cL"/></utml:name>
- <utml:value><xsl:value-of select="$cDTN"/></utml:value>
- </utml:input>
- </dp:section2>
- </dp:input>
- </lyt:section>
- </lyt:layout>
- </xsl:for-each>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
-
- <xts:block id="debug" dependency="main" type="exec" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html">
- <!-- get the debug logic sheet -->
- <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="dbg">
- <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
- <xsl:template match="/">
- <dbg:dumpxml select="/root"/>
- </xsl:template>
- </xsl:stylesheet>
- </xts:block>
- </xts:morphlet>
|