deployment_target_name.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  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, 2014
  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. <xts:morphlet xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/portal.xml, messages/portalRL.xml" includeConfig="true" requiredCapability="canUseAdministrationPortal">
  13. <!--
  14. ===============================================================================================
  15. formlogic_init - standard form logic initialization
  16. ===============================================================================================
  17. -->
  18. <xts:block id="formlogic_init" type="exec" mode="interpret" processor="XSLT" path="/logicsheets/formlogic_init.xslt" nodelist="env,credential,system,http"/>
  19. <!--
  20. ===============================================================================================
  21. Control
  22. ===============================================================================================
  23. -->
  24. <xts:block id="control" processor="XSLT" type="exec" dependency="formlogic_init">
  25. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  26. <xts:logicsheet path="logicsheets/portal.xsl"/>
  27. <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">
  28. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  29. <send:variables/>
  30. <!-- add any theme variables -->
  31. <pf:variables/>
  32. <xsl:template match="root">
  33. <xts:sequence>
  34. <xts:replace select="/root/env/param[@name = 'm_packagesOp']">
  35. <param name="m_packagesOp">update-packages</param>
  36. </xts:replace>
  37. <xts:delete select="/root/env/param[@name='m_target_name' or @name='m_source_name']"/>
  38. <xts:append select="/root/env">
  39. <param name="m_target_name">
  40. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name = 'target_rename'])), true())" disable-output-escaping="yes"/>
  41. </param>
  42. <param name="m_source_name">
  43. <xsl:value-of select="xtsext:web64decode(xtsext:cafaction('sign_unwrap',string(/root/env/param[@name = 'target_source_name'])), true())" disable-output-escaping="yes"/>
  44. </param>
  45. </xts:append>
  46. <xsl:if test="/root/env/param[@name='so.searchPath'] != ''">
  47. <xts:delete select="/root/env/param[@name='target_location']"/>
  48. <xts:append select="/root/env">
  49. <param name="target_location">
  50. <xsl:value-of select="/root/env/param[@name='so.searchPath']"/>
  51. </param>
  52. </xts:append>
  53. </xsl:if>
  54. </xts:sequence>
  55. </xsl:template>
  56. </xsl:stylesheet>
  57. </xts:block>
  58. <xts:block id="checkDelete" type="exec" mode="interpret" dependency="formlogic_init" processor="XSLT" condition=".[/root/env/param[starts-with(@name,'addlocales')]!='']" mandatory="false">
  59. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  60. <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">
  61. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  62. <xsl:template match="/">
  63. <xts:sequence>
  64. <xsl:for-each select="/root/env/param[starts-with(@name,'m_delete_locale_')]">
  65. <xsl:if test="not(string-length(.)=0)">
  66. <xsl:variable name="deloc" select="."/>
  67. <xsl:if test="/root/env/param[@name=concat('m_d_default_name_',$deloc)]">
  68. <xsl:variable name="nam" select="concat('m_d_default_name_',string($deloc))"/>
  69. <xts:delete select="/root/env/param[@name='{$nam}']"/>
  70. </xsl:if>
  71. <xsl:if test="/root/env/param[@name=concat('m_add_name_',$deloc)]">
  72. <xsl:variable name="nam" select="concat('m_add_name_',string($deloc))"/>
  73. <xts:delete select="/root/env/param[@name='{$nam}']"/>
  74. </xsl:if>
  75. <xsl:variable name="delthis" select="concat('m_delete_locale_',string($deloc))"/>
  76. <xts:delete select="/root/env/param[@name='{$delthis}']"/>
  77. </xsl:if>
  78. </xsl:for-each>
  79. <xts:delete select="/root/env/param[@name='addlocales']"/>
  80. </xts:sequence>
  81. </xsl:template>
  82. </xsl:stylesheet>
  83. </xts:block>
  84. <!--
  85. ===============================================================================================
  86. Query for the default destination container
  87. ===============================================================================================
  88. -->
  89. <xts:block id="getContent" processor="XSLT" type="exec" dependency="formlogic_init control">
  90. <xts:logicsheet path="logicsheets/buslogic.xslt"/>
  91. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  92. xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
  93. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt">
  94. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  95. <xsl:template match="/">
  96. <xsl:variable name="path">
  97. <xsl:choose>
  98. <xsl:when test="string(/root/env/param[@name='target_location'])!=''">
  99. <xsl:value-of select="/root/env/param[@name='target_location']"/>
  100. </xsl:when>
  101. <xsl:otherwise><xsl:value-of select="'/content'"/></xsl:otherwise>
  102. </xsl:choose>
  103. </xsl:variable>
  104. <xts:sequence>
  105. <xts:append>
  106. <xts:transform src="transforms/CM/post-process.xslt" processor="XSLT">
  107. <send:request provider="cm">
  108. <xts:transform src="transforms/CM/pre-process.xslt" processor="XSLT">
  109. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  110. <cm:requests>
  111. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  112. <cm:search>
  113. <xsl:value-of select="$path"/>
  114. </cm:search>
  115. <cm:properties>
  116. <cm:property name="defaultName"/>
  117. <cm:property name="searchPath"/>
  118. <cm:property name="ancestors"/>
  119. <cm:property name="permissions"/>
  120. <cm:property name="storeID"/>
  121. </cm:properties>
  122. </cm:query>
  123. <cm:query xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
  124. <cm:search><xsl:value-of select="/root/session/param[@name='e_hp']"/>/folder[permission("write") and permission("traverse")]</cm:search>
  125. <cm:properties>
  126. <cm:property name="defaultName"/>
  127. <cm:property name="permissions"/>
  128. <cm:property name="storeID"/>
  129. </cm:properties>
  130. </cm:query>
  131. </cm:requests>
  132. </cm:query>
  133. </xts:transform>
  134. </send:request>
  135. </xts:transform>
  136. </xts:append>
  137. <xsl:variable name="passport">
  138. <xsl:value-of select="/root/credential/param[@name='CAM']/*[local-name() ='CAM']/*[local-name() = 'CAMPassport']/*[local-name() = 'id']"/>
  139. </xsl:variable>
  140. <xts:delete select="/root/env/param[@name='new_ancestors']"/>
  141. <xts:append select="/root/env">
  142. <xts:transform src="portal/controls/create_web64_param.xslt" processor="XSLT">
  143. <param name="new_ancestors">
  144. <passport><xsl:value-of select="$passport"/></passport>
  145. <markup>
  146. <xts:transform name="XMLEncode">
  147. <ancestors xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  148. <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='ancestors']/*"/>
  149. <ancestorInfo xmlns="http://developer.cognos.com/schemas/xts-cm/1/">
  150. <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='objectClass']"/>
  151. <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='searchPath']"/>
  152. <xts:queryNode select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='storeID']"/>
  153. <title><xts:transform name="XMLEncode"><xts:queryValue select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply'][1]/*/*[local-name()='defaultName']"/></xts:transform></title>
  154. </ancestorInfo>
  155. </ancestors>
  156. </xts:transform>
  157. </markup>
  158. </param>
  159. </xts:transform>
  160. </xts:append>
  161. </xts:sequence>
  162. </xsl:template>
  163. </xsl:stylesheet>
  164. </xts:block>
  165. <!--
  166. ===============================================================================================
  167. main
  168. ===============================================================================================
  169. -->
  170. <xts:block id="main" mode="output" processor="XSLT" type="exec" mimeType="text/html" dependency="checkDelete control formlogic_init getContent">
  171. <!-- get the ContentManager logic sheet -->
  172. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  173. <!-- deployment packages part -->
  174. <xts:logicsheet path="logicsheets/deploymentlogic.xsl"/>
  175. <xts:logicsheet path="logicsheets/portal.xsl"/>
  176. <!-- get the new theme stuff -->
  177. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  178. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  179. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  180. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  181. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  182. <!-- apply the form logic -->
  183. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  184. <xts:logicsheet path="logicsheets/validation.xslt"/> <xts:logicsheet path="logicsheets/presentation/touch_up.xslt"/>
  185. <xsl:stylesheet version="1.0"
  186. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  187. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  188. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  189. xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/"
  190. xmlns:ctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/controls/"
  191. xmlns:pf="http://developer.cognos.com/schemas/xts/pf"
  192. xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/"
  193. xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/"
  194. xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/"
  195. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  196. xmlns:dpl="http://developer.cognos.com/schemas/xts/logicsheets/deployment/"
  197. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  198. xmlns:cml="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/cml/1/"
  199. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/"
  200. exclude-result-prefixes="xsl cm cf cp pf df dp lyt ctrl cml bus utml">
  201. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  202. <!-- current file name -->
  203. <xsl:variable name="mname" select="'deployment_target_name.xts'"/>
  204. <!-- add any theme variables -->
  205. <pf:variables/>
  206. <!-- deployment templates -->
  207. <dpl:variables/>
  208. <!-- start the output -->
  209. <xsl:template match="/root">
  210. <xsl:variable name="browserTitle">
  211. <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TITLE">
  212. <xts:param name="specName">
  213. <span lang="{$contentLocale}"><xsl:value-of select="/root/env/param[@name = 'm_p_defaultName']"/></span>
  214. </xts:param>
  215. </xts:string>
  216. </xsl:variable>
  217. <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text><dp:page longTitle="$browserTitle">
  218. <dp:meta>
  219. <pf:meta/> <!-- Standard meta tags -->
  220. </dp:meta>
  221. <dp:script>
  222. <pf:help context="HID_DEPLOY"/> <!-- Help system -->
  223. <script language="javascript" src="{$webcontent}/{$app}/js/utilities.js"/>
  224. <script language="javascript">
  225. <xsl:variable name="deploymentTargetName"><xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TARGET" encode="javascript"/></xsl:variable>
  226. 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>";
  227. var MSG_ERR_NO_URI = "<xts:string id="IDS_PROP_ERR_NO_URI" encode="javascript"/>";
  228. function removeEntry(localeVal)
  229. {
  230. clearOut(localeVal);
  231. document.pform.m.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
  232. document.pform.ps_nav_op.value = "maintain";
  233. document.pform.submit();
  234. }
  235. function preTranslate()
  236. {
  237. // document.pform.m_return.value = "<xsl:value-of select="concat($app,'/',$mname)"/>";
  238. }
  239. <![CDATA[
  240. function validate()
  241. {
  242. var items = document.pform.elements.length;
  243. for (var i=0;i<items;i++)
  244. {
  245. itemName = document.pform.elements[i].name;
  246. if (itemName.substring(0,17) == "m_d_default_name_" && trim(document.pform.elements[i].value)=="")
  247. {
  248. alert(MSG_ERR_NO_NAME);
  249. document.pform.elements[i].focus();
  250. return false;
  251. }
  252. }
  253. return true;
  254. }
  255. function clearOut(localeVal)
  256. {
  257. var items = document.pform.elements.length;
  258. var cnt=0;
  259. for (var i=0; i<items; i++)
  260. {
  261. var len = document.pform.elements[i].name.length;
  262. var valen = localeVal.length;
  263. var nl = len-valen;
  264. if ( len > valen )
  265. {
  266. var x = document.pform.elements[i].name;
  267. if (x.substring(0,5)=="m_d_d" && x.substring(nl)==localeVal)
  268. {
  269. cnt +=1;
  270. document.pform.elements[i].disabled="true";
  271. if(cnt==3)
  272. return;
  273. }
  274. }
  275. }
  276. }
  277. ]]>
  278. </script>
  279. </dp:script>
  280. <utml:form name="pform" method="post" action="{$gateway}">
  281. <utml:exclude-prefix>
  282. <xsl:value-of select="'m_d_default'"/>
  283. </utml:exclude-prefix>
  284. <utml:exclusion-list>
  285. <xsl:for-each select="/root/env/param[starts-with(@name,'m_add_')]">
  286. <xsl:value-of select="concat(./@name,' ')"/>
  287. </xsl:for-each>
  288. <xsl:for-each select="/root/env/param[starts-with(@name,'m_delete_locale_')]">
  289. <xsl:value-of select="concat(./@name,' ')"/>
  290. </xsl:for-each>
  291. </utml:exclusion-list>
  292. <utml:input type="hidden" name="m_package_target_renamed" utml:update="false" value="true"/>
  293. <dp:header div="div">
  294. <dp:title>
  295. <xsl:copy-of select="$browserTitle"/>
  296. </dp:title>
  297. <dp:description>
  298. <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_DESCRIPTION"/>
  299. </dp:description>
  300. </dp:header>
  301. <!-- Current destination folder. -->
  302. <xsl:variable name="path">
  303. <xsl:choose>
  304. <xsl:when test="string(/root/env/param[@name='target_location'])!=''"><xsl:value-of select="/root/env/param[@name='target_location']"/></xsl:when>
  305. <xsl:otherwise><xsl:value-of select="'/content'"/></xsl:otherwise>
  306. </xsl:choose>
  307. </xsl:variable>
  308. <lyt:layout style="1" joinSection="yes">
  309. <lyt:section>
  310. <dp:list>
  311. <dp:section><dp:label><xts:string id="IDS_PROP_TARGET_LOCATION"/></dp:label></dp:section>
  312. <dp:section wrap="wrap">
  313. <dp:text valign="top" wrap="wrap">
  314. <xsl:variable name="rootPath">
  315. <xsl:value-of select="$defaultContentRoot"/>
  316. </xsl:variable>
  317. <cf:do-the-path-link>
  318. <cf:param name="familytree">cm:queryResponse/cm:queryReply[1]/*/cm:ancestors</cf:param>
  319. <cf:param name="familymember">cm:queryResponse/cm:queryReply[1]/*/cm:defaultName</cf:param>
  320. <cf:param name="home"><xsl:value-of select="$rootPath"/></cf:param>
  321. </cf:do-the-path-link>
  322. </dp:text>
  323. </dp:section>
  324. <dp:section>
  325. <dp:group>
  326. <dp:groupItem valign="top">
  327. <utml:a utml:op="maintain">
  328. <utml:target>
  329. <xsl:value-of select="$app"/>/select/select.xts<xsl:text/>
  330. </utml:target>
  331. <xsl:text/><xts:string id="IDS_PROP_TARGET_ANOTHER_FOLDER"/><xsl:text/>
  332. </utml:a>
  333. </dp:groupItem>
  334. </dp:group>
  335. </dp:section>
  336. </dp:list>
  337. <utml:input type="hidden" name="so.return.m" utml:update="false">
  338. <utml:value><xsl:value-of select="concat($app,'/',$mname)"/></utml:value>
  339. </utml:input>
  340. <utml:input type="hidden" name="so.select" utml:update="false">
  341. <utml:value>package.deploymentTarget</utml:value>
  342. </utml:input>
  343. <utml:input type="hidden" name="so.defaultLocation" utml:update="false">
  344. <xsl:attribute name="value"><xsl:value-of select="$path"/></xsl:attribute>
  345. </utml:input>
  346. </lyt:section>
  347. </lyt:layout>
  348. <xsl:choose>
  349. <!-- no new entries were added -->
  350. <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_' )])">
  351. <xsl:call-template name="MLEntriesLayout">
  352. <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]"/>
  353. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  354. </xsl:call-template>
  355. </xsl:when>
  356. <xsl:otherwise>
  357. <xsl:call-template name="MLEntriesLayout">
  358. <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)]"/>
  359. <xsl:with-param name="form-read-only" select="$form-read-only"/>
  360. </xsl:call-template>
  361. </xsl:otherwise>
  362. </xsl:choose>
  363. <lyt:layout style="1" border="yes">
  364. <lyt:section>
  365. <dp:list>
  366. <dp:section>
  367. <dp:text width="100%"/>
  368. <dp:link>
  369. <utml:a utml:op="stack-up" onclick="preTranslate();">
  370. <utml:target>
  371. <xsl:value-of select="$app"/>/add_multilingual.xts<xsl:text/>
  372. </utml:target>
  373. <xts:string id="IDS_PROP_NEW_MULTILINGUAL"/>
  374. </utml:a>
  375. </dp:link>
  376. </dp:section>
  377. </dp:list>
  378. </lyt:section>
  379. </lyt:layout>
  380. <dp:footer div="div">
  381. <df:button df:id="IDS_OK" df:style="stack-down-save" utml:validate="true"/>
  382. <df:button df:id="IDS_CANCEL" df:style="stack-down" onClick="javascript:document.pform.target_guid.value='';"/>
  383. </dp:footer>
  384. </utml:form>
  385. </dp:page>
  386. </xsl:template>
  387. <xsl:template name="MLEntriesLayout">
  388. <xsl:param name="targetNames"/>
  389. <xsl:param name="form-read-only"/>
  390. <xsl:variable name="cCount" select="count($targetNames)"/>
  391. <xsl:for-each select="$targetNames">
  392. <xsl:variable name="cL" select="id"/>
  393. <xsl:variable name="cFL" select="displayName"/>
  394. <xsl:variable name="cDTN">
  395. <xsl:choose>
  396. <xsl:when test="/root/env/param[@name=concat('m_d_default_name_',$cL)]">
  397. <xsl:value-of select="/root/env/param[@name=concat('m_d_default_name_',$cL)]"/>
  398. </xsl:when>
  399. <xsl:when test="/root/env/param[@name=concat('m_add_name_',$cL)]">
  400. <xsl:value-of select="/root/env/param[@name=concat('m_add_name_',$cL)]"/>
  401. </xsl:when>
  402. <xsl:otherwise>
  403. <xsl:value-of select="/root/env/param[@name='m_target_name']/child::node()/child::node()[@xml:lang = $cL]"/>
  404. </xsl:otherwise>
  405. </xsl:choose>
  406. </xsl:variable>
  407. <xsl:variable name="cDSN">
  408. <xsl:value-of select="/root/env/param[@name='m_source_name']/child::node()/child::node()[@xml:lang=$cL]"/>
  409. </xsl:variable>
  410. <lyt:layout style="1" border="yes">
  411. <lyt:section>
  412. <dp:list>
  413. <dp:section>
  414. <dp:input width="53%">
  415. <dp:section1><xts:string id="IDS_PROP_LANGUAGE"/></dp:section1>
  416. <dp:section2>
  417. <xsl:value-of select="$cFL"/>
  418. </dp:section2>
  419. </dp:input>
  420. <xsl:if test="$cCount != 1">
  421. <dp:link>
  422. <a>
  423. <xsl:attribute name="href">javascript:removeEntry('<xsl:value-of select="xtsext:javascriptencode($cL)"/>')</xsl:attribute>
  424. <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>
  425. <xts:string id="IDS_PROP_REMOVE_MULTILINGUAL"/>
  426. </a>
  427. </dp:link>
  428. </xsl:if>
  429. </dp:section>
  430. </dp:list>
  431. </lyt:section>
  432. <lyt:section>
  433. <dp:list>
  434. <dp:section>
  435. <dp:label>
  436. <xts:string id="IDS_DEPLOYMENT_TARGET_NAME_SOURCE"/>
  437. </dp:label>
  438. </dp:section>
  439. <dp:section>
  440. <dp:text>
  441. <xsl:value-of select="$cDSN"/>
  442. </dp:text>
  443. </dp:section>
  444. </dp:list>
  445. </lyt:section>
  446. <lyt:section>
  447. <dp:input>
  448. <dp:section1 id="lbl_m_d_default_name_{$cL}"><xts:string id="IDS_DEPLOYMENT_TARGET_NAME_TARGET"/></dp:section1>
  449. <dp:section2>
  450. <utml:input type="text" size="58" aria-labelledby="lbl_m_d_default_name_{$cL}">
  451. <utml:name>m_d_default_name_<xsl:value-of select="$cL"/></utml:name>
  452. <utml:value><xsl:value-of select="$cDTN"/></utml:value>
  453. </utml:input>
  454. </dp:section2>
  455. </dp:input>
  456. </lyt:section>
  457. </lyt:layout>
  458. </xsl:for-each>
  459. </xsl:template>
  460. </xsl:stylesheet>
  461. </xts:block>
  462. <xts:block id="debug" dependency="main" type="exec" mode="output" condition=".[ /root/session/param[@name='debug'] = '1' ]" processor="XSLT" mandatory="false" mimeType="text/html">
  463. <!-- get the debug logic sheet -->
  464. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  465. <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">
  466. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no" omit-xml-declaration="yes"/>
  467. <xsl:template match="/">
  468. <dbg:dumpxml select="/root"/>
  469. </xsl:template>
  470. </xsl:stylesheet>
  471. </xts:block>
  472. </xts:morphlet>