relationships.xts 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cogadmin
  5. (C) Copyright IBM Corp. 2005, 2012
  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 version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/cogadminuimsgs.xml" resolverBase="cogadmin" requiredCapability="canUseServerAdministrationTool">
  13. <xts:block id="frag_init" nodelist="env, credential" type="exec" mode="interpret" processor="XSLT" path="cogadmin/logicsheets/fragment_init.xslt" condition=".[not(/root/env/param[@name='frag-directive']='meta-only')]" mandatory="true"/>
  14. <!--
  15. - Get the supported relationships
  16. - Perform the QueryRelationshipsByType request
  17. -->
  18. <xts:block id="getContent" nodelist="env, header" dependency="frag_init" type="exec" mode="interpret" processor="XSLT">
  19. <xsl:stylesheet version="1.0"
  20. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  21. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  22. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  23. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  24. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  25. xmlns:cogadminext="xalan://com.cognos.admin.xts.ext.XTSExt"
  26. exclude-result-prefixes="xsl xts xtsext SOAP-ENV xos bus">
  27. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  28. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  29. <xsl:variable name="resourceIdentifier">
  30. <xsl:choose>
  31. <xsl:when test="key('env-param','parentResourceID') != ''">
  32. <xsl:value-of select="xtsext:urldecode(string(key('env-param','parentResourceID')))"/>
  33. </xsl:when>
  34. <xsl:when test="key('env-param','relationshipResourceID') != ''">
  35. <xsl:value-of select="xtsext:urldecode(string(key('env-param','relationshipResourceID')))"/>
  36. </xsl:when>
  37. <xsl:when test="key('env-param','resourceID') != ''">
  38. <xsl:value-of select="xtsext:urldecode(string(key('env-param','resourceID')))"/>
  39. </xsl:when>
  40. <xsl:otherwise>
  41. <xsl:variable name="application">
  42. <xsl:value-of select="key('env-param','application')"/>
  43. </xsl:variable>
  44. <xsl:value-of select="cogadminext:getDefaultResourceId(string($application))"/>
  45. </xsl:otherwise>
  46. </xsl:choose>
  47. </xsl:variable>
  48. <xsl:template match="/">
  49. <xts:sequence>
  50. <xsl:choose>
  51. <!-- if we're building an actions menu, then we need to get the metadata -->
  52. <xsl:when test="key('env-param','buildActionsMenu') = 'true'">
  53. <xts:append select="/root">
  54. <metadata>
  55. <xts:request protocol="GetResourceProperty">
  56. <SOAP-ENV:Envelope
  57. xmlns:nemo="http://developer.cognos.com/nemo"
  58. xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
  59. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  60. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  61. <SOAP-ENV:Header>
  62. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  63. <nemo:cogadminHeader>
  64. <nemo:ResourceIdentifier><xsl:value-of select="key('env-param','objResourceID')"/></nemo:ResourceIdentifier>
  65. </nemo:cogadminHeader>
  66. </SOAP-ENV:Header>
  67. <SOAP-ENV:Body>
  68. <wsrf-rp:GetResourceProperty>MetadataDescriptor</wsrf-rp:GetResourceProperty>
  69. </SOAP-ENV:Body>
  70. </SOAP-ENV:Envelope>
  71. </xts:request>
  72. </metadata>
  73. </xts:append>
  74. </xsl:when>
  75. <xsl:otherwise>
  76. <xsl:choose>
  77. <xsl:when test="not(key('env-param','buildSiblingMenu') = 'true')">
  78. <xts:append select="/root">
  79. <!-- Get the supported relationships of the system -->
  80. <!-- TODO: Only make this query once -->
  81. <relationships>
  82. <xts:request protocol="GetResourceProperty" responseEnvelope="false">
  83. <SOAP-ENV:Envelope
  84. xmlns:nemo="http://developer.cognos.com/nemo"
  85. xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
  86. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  87. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  88. <SOAP-ENV:Header>
  89. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  90. <xsl:variable name="application">
  91. <xsl:value-of select="key('env-param','application')"/>
  92. </xsl:variable>
  93. <nemo:cogadminHeader>
  94. <nemo:ResourceIdentifier><xsl:value-of select="cogadminext:getDefaultResourceId(string($application))"/></nemo:ResourceIdentifier>
  95. </nemo:cogadminHeader>
  96. </SOAP-ENV:Header>
  97. <SOAP-ENV:Body>
  98. <wsrf-rp:GetResourceProperty>resource-prop:SupportedRelationships</wsrf-rp:GetResourceProperty>
  99. </SOAP-ENV:Body>
  100. </SOAP-ENV:Envelope>
  101. </xts:request>
  102. </relationships>
  103. <breadcrumbs>
  104. <xsl:for-each select="/root/env/param[starts-with(@name,'bc_resid')]">
  105. <xsl:sort select="@name"/>
  106. <xts:request protocol="GetMultipleResourceProperties" responseEnvelope="false">
  107. <SOAP-ENV:Envelope
  108. xmlns:nemo="http://developer.cognos.com/nemo"
  109. xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
  110. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  111. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  112. <SOAP-ENV:Header>
  113. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  114. <nemo:cogadminHeader>
  115. <nemo:ResourceIdentifier><xsl:value-of select="xtsext:urldecode(string(.))"/></nemo:ResourceIdentifier>
  116. </nemo:cogadminHeader>
  117. </SOAP-ENV:Header>
  118. <SOAP-ENV:Body>
  119. <wsrf-rp:GetMultipleResourceProperties>
  120. <wsrf-rp:ResourceProperty>Caption</wsrf-rp:ResourceProperty>
  121. </wsrf-rp:GetMultipleResourceProperties>
  122. </SOAP-ENV:Body>
  123. </SOAP-ENV:Envelope>
  124. </xts:request>
  125. </xsl:for-each>
  126. </breadcrumbs>
  127. </xts:append>
  128. </xsl:when>
  129. <xsl:otherwise>
  130. <xts:append select="/root">
  131. <!-- QueryRelationshipsByType -->
  132. <QueryRelationshipsByType>
  133. <xts:request protocol="QueryRelationshipsByType" responseEnvelope="false">
  134. <SOAP-ENV:Envelope
  135. xmlns:nemo="http://developer.cognos.com/nemo"
  136. xmlns:muws-p2-xs="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
  137. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  138. <SOAP-ENV:Header>
  139. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  140. <nemo:cogadminHeader>
  141. <nemo:ResourceIdentifier><xsl:value-of select="$resourceIdentifier"/></nemo:ResourceIdentifier>
  142. </nemo:cogadminHeader>
  143. </SOAP-ENV:Header>
  144. <SOAP-ENV:Body>
  145. <muws-p2-xs:QueryRelationshipsByType>
  146. <muws-p2-xs:RequestedType>
  147. <xsl:choose>
  148. <xsl:when test="key('env-param','selectedRelationshipType') != ''">
  149. <xsl:value-of select="key('env-param','selectedRelationshipType')"/>
  150. </xsl:when>
  151. <xsl:when test="key('env-param','relationshipType') != ''">
  152. <xsl:value-of select="key('env-param','relationshipType')"/>
  153. </xsl:when>
  154. <xsl:otherwise>
  155. <!-- get the default relationship -->
  156. <xts:queryValue select="/root/relationships/*[local-name()='GetResourcePropertyResponse']/*[local-name()='SupportedRelationships']/*[local-name()='Relationship' and @default='true'][1]/*[local-name()='Name']"/>
  157. </xsl:otherwise>
  158. </xsl:choose>
  159. </muws-p2-xs:RequestedType>
  160. </muws-p2-xs:QueryRelationshipsByType>
  161. </SOAP-ENV:Body>
  162. </SOAP-ENV:Envelope>
  163. </xts:request>
  164. </QueryRelationshipsByType>
  165. </xts:append>
  166. </xsl:otherwise>
  167. </xsl:choose>
  168. </xsl:otherwise>
  169. </xsl:choose>
  170. </xts:sequence>
  171. </xsl:template>
  172. </xsl:stylesheet>
  173. </xts:block>
  174. <xts:block id="getMeta" type="exec" mode="interpret" dependency="getContent" nodelist="env, QueryRelationshipsByType" processor="XSLT">
  175. <xsl:stylesheet version="1.0"
  176. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  177. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  178. xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
  179. xmlns:ns1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
  180. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  181. xmlns:cogadminext="xalan://com.cognos.admin.xts.ext.XTSExt"
  182. exclude-result-prefixes="xsl xts xos xtsext muws2 ns1">
  183. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  184. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  185. <xsl:template match="/">
  186. <xts:sequence>
  187. <xts:append select="/root/output">
  188. <xos:part>
  189. <xos:entityHeader>
  190. <xos:param name="Content-Type">text/xml; charset=utf-8</xos:param>
  191. </xos:entityHeader>
  192. <xos:entityBody>
  193. <fragment>
  194. <xsl:choose>
  195. <xsl:when test="/root/env/param[@name='buildSiblingMenu']='true'">
  196. <info>
  197. <title>
  198. <xts:string id="IDS_ADM_TOP_SYSTEM"/>
  199. </title>
  200. </info>
  201. <preferredTitle>
  202. <xts:string id="IDS_ADM_TOP_SYSTEM"/>
  203. </preferredTitle>
  204. </xsl:when>
  205. <xsl:when test="/root/env/param[@name='buildActionsMenu']='true'">
  206. <preferredTitle><xts:string id="IDS_ADM_TOP_SYSTEM"/></preferredTitle>
  207. </xsl:when>
  208. <xsl:when test="not(/root/env/param[@name='buildSiblingMenu']='true') and not(/root/env/param[@name='buildActionsMenu']='true')">
  209. <xsl:variable name="resourceIdentifier">
  210. <xsl:choose>
  211. <xsl:when test="key('env-param','currentResourceID') != ''">
  212. <xsl:value-of select="xtsext:urldecode(string(key('env-param','currentResourceID')))"/>
  213. </xsl:when>
  214. <xsl:when test="key('env-param','relationshipResourceID') != ''">
  215. <xsl:value-of select="xtsext:urldecode(string(key('env-param','relationshipResourceID')))"/>
  216. </xsl:when>
  217. <xsl:otherwise>
  218. <xsl:variable name="application">
  219. <xsl:value-of select="key('env-param','application')"/>
  220. </xsl:variable>
  221. <xsl:value-of select="cogadminext:getDefaultResourceId(string($application))"/>
  222. </xsl:otherwise>
  223. </xsl:choose>
  224. </xsl:variable>
  225. <xsl:variable name="storeIdentifier">
  226. <xsl:choose>
  227. <xsl:when test="key('env-param','currentStoreID') != ''">
  228. <xsl:value-of select="key('env-param','currentStoreID')"/>
  229. </xsl:when>
  230. <xsl:when test="key('env-param','relationshipStoreID') != ''">
  231. <xsl:value-of select="key('env-param','relationshipStoreID')"/>
  232. </xsl:when>
  233. </xsl:choose>
  234. </xsl:variable>
  235. <xsl:variable name="rootRelationshipType">
  236. <xsl:choose>
  237. <xsl:when test="key('env-param','rootRelationshipType') != ''">
  238. <xsl:value-of select="key('env-param','rootRelationshipType')"/>
  239. </xsl:when>
  240. <xsl:when test="key('env-param','selectedRelationshipType') != ''">
  241. <xsl:value-of select="key('env-param','selectedRelationshipType')"/>
  242. </xsl:when>
  243. <xsl:otherwise>
  244. <xsl:value-of select="key('env-param','relationshipType')"/>
  245. </xsl:otherwise>
  246. </xsl:choose>
  247. </xsl:variable>
  248. <preferredTitle>
  249. <xts:string id="IDS_ADM_TOP_SYSTEM"/>
  250. </preferredTitle>
  251. <xsl:if test="not(string(/root/env/param[@name='frag-windowState']) = 'maximized')">
  252. <!-- update the metrics fragment with the root resourceID -->
  253. <transientUpdate name="resourceID" scope="page">
  254. <xsl:value-of select="$resourceIdentifier"/>
  255. </transientUpdate>
  256. <!-- update the settings fragment with the root storeID -->
  257. <transientUpdate name="storeID" scope="page">
  258. <xsl:value-of select="$storeIdentifier"/>
  259. </transientUpdate>
  260. <!-- update the settings fragment with the resourceLabel of the currently selected resourceID-->
  261. <transientUpdate name="resourceLabel" scope="page">
  262. <xsl:value-of select="/root/QueryRelationshipsByType/muws2:QueryRelationshipsByTypeResponse/muws2:Relationship/muws2:Participant[ns1:ResourceId= $resourceIdentifier]/muws2:Caption"/>
  263. </transientUpdate>
  264. </xsl:if>
  265. </xsl:when>
  266. </xsl:choose>
  267. </fragment>
  268. </xos:entityBody>
  269. </xos:part>
  270. </xts:append>
  271. </xts:sequence>
  272. </xsl:template>
  273. </xsl:stylesheet>
  274. </xts:block>
  275. <!--
  276. Build the sibling menu and display it
  277. -->
  278. <xts:block id="buildSiblingMenu" nodelist="QueryRelationshipsByType, env, user" dependency="getMeta" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='buildSiblingMenu']='true']" mandatory="false">
  279. <xsl:stylesheet version="1.0"
  280. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  281. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  282. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  283. xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd"
  284. xmlns:ns1="http://docs.oasis-open.org/wsdm/muws1-2.xsd"
  285. xmlns:resource-prop="http://developer.cognos.com/admin/properties"
  286. xmlns:meta="http://developer.cognos.com/schemas/xts/cogadmin/logicsheet/meta"
  287. exclude-result-prefixes="xsl xos ns1 xtsext muws2 resource-prop meta">
  288. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  289. <xsl:template match="/">
  290. <xts:sequence>
  291. <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
  292. <markup>
  293. <mimeType>text/html</mimeType>
  294. <markupXml>
  295. <script>
  296. <xsl:variable name="resourceID" select="xtsext:urldecode(string(/root/env/param[@name='currentResourceID']))"/>
  297. <xsl:variable name="application" select="/root/env/param[@name='application']"/>
  298. var g_THIS_siblingMenu=new ui_menu({id: "children", fragment: "_THIS_<xsl:value-of select="$application"/>", items:[
  299. <xsl:for-each select="/root/QueryRelationshipsByType/muws2:QueryRelationshipsByTypeResponse/muws2:Relationship/muws2:Participant[position() &gt; 1 and ./resource-prop:HasChildren = 'true']">
  300. <xsl:sort select="muws2:Caption" lang="{/root/user/param[@name='contentLocale']}"/>
  301. <xsl:variable name="isSelected">
  302. <xsl:value-of select="ns1:ResourceId = $resourceID"/>
  303. </xsl:variable>
  304. {
  305. <xsl:variable name="jsEncodeName" select="xtsext:javascriptencode(string(muws2:Caption))"/>
  306. title: "<xsl:value-of select="$jsEncodeName"/>",
  307. selected: <xsl:value-of select="$isSelected"/>,
  308. action: function(evt) {
  309. _THIS_.relationshipsObj.keepBreadcrumbs(<xsl:value-of select="number(/root/env/param[@name='breadcrumbPosition'])"/>);
  310. _THIS_.navigate('<xsl:value-of select="xtsext:javascriptencode(xtsext:urlencode(string(ns1:ResourceId)))"/>', '<xsl:value-of select="xtsext:javascriptencode(string(resource-prop:StoreID))"/>');
  311. }
  312. }
  313. <xsl:if test="position() != last()">,</xsl:if>
  314. </xsl:for-each>
  315. ]});
  316. ui_menuShow(_THIS_.relationshipsObj, g_THIS_siblingMenu);
  317. </script>
  318. </markupXml>
  319. </markup>
  320. </xts:append>
  321. </xts:sequence>
  322. </xsl:template>
  323. </xsl:stylesheet>
  324. </xts:block>
  325. <!--
  326. Build the action menu for a specific resource or the group actions
  327. -->
  328. <xts:block id="buildActionMenu" dependency="getMeta" nodelist="metadata, env, header" type="exec" mode="interpret" processor="XSLT" condition=".[/root/env/param[@name='buildActionsMenu']='true']" mandatory="false">
  329. <xsl:stylesheet version="1.0"
  330. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  331. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  332. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  333. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  334. xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
  335. xmlns:nemo="http://developer.cognos.com/nemo"
  336. xmlns:meta="http://developer.cognos.com/schemas/xts/cogadmin/logicsheet/meta"
  337. exclude-result-prefixes="xsl xts SOAP-ENV xos bus wsrf-rp nemo meta">
  338. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  339. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  340. <xsl:template match="/">
  341. <xts:sequence>
  342. <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
  343. <markup>
  344. <mimeType>text/html</mimeType>
  345. <markupXml>
  346. <!-- Generate UI markup using the response and metadata -->
  347. <xts:transform src="/cogadmin/transforms/gen-ui-markup/actions_menu.xslt" processor="XSLT">
  348. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  349. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
  350. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  351. <root>
  352. <xsl:variable name="propertyCapability">
  353. <xsl:choose>
  354. <xsl:when test="/root/env/param[@name='actionType']='group'">http://cognos.com/admin/supportedactions/resourcegroup</xsl:when>
  355. <xsl:otherwise>http://cognos.com/admin/supportedactions/resource</xsl:otherwise>
  356. </xsl:choose>
  357. </xsl:variable>
  358. <!-- does the current resource support the needed property (supportedActions or supportedGroupActions) -->
  359. <xsl:variable name="supportedActionsProp" select="/root/metadata/wsrf-rp:GetResourcePropertyResponse/nemo:MetadataDescriptor/nemo:Property[nemo:Capability=string($propertyCapability)]/nemo:Name"/>
  360. <xsl:if test="string($supportedActionsProp) != ''">
  361. <xts:request protocol="GetResourceProperty">
  362. <SOAP-ENV:Envelope
  363. xmlns:nemo="http://developer.cognos.com/nemo"
  364. xmlns:resource-prop="http://developer.cognos.com/admin/properties"
  365. xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"
  366. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  367. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  368. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  369. <SOAP-ENV:Header>
  370. <xsl:copy-of select="/root/header/bus:biBusHeader"/>
  371. <nemo:cogadminHeader>
  372. <nemo:ResourceIdentifier><xsl:value-of select="/root/env/param[@name='objResourceID']"/></nemo:ResourceIdentifier>
  373. </nemo:cogadminHeader>
  374. </SOAP-ENV:Header>
  375. <SOAP-ENV:Body>
  376. <wsrf-rp:GetResourceProperty><xsl:value-of select="$supportedActionsProp"/></wsrf-rp:GetResourceProperty>
  377. </SOAP-ENV:Body>
  378. </SOAP-ENV:Envelope>
  379. </xts:request>
  380. </xsl:if>
  381. <xts:queryNode select="/root/metadata | /root/system | /root/env"/>
  382. </root>
  383. </xts:transform>
  384. </markupXml>
  385. </markup>
  386. </xts:append>
  387. </xts:sequence>
  388. </xsl:template>
  389. </xsl:stylesheet>
  390. </xts:block>
  391. <!--
  392. Generate javascript and breadcrumbs for the various J2HTML scorecard views. TODO: Migrate this to J2HTML
  393. Only do this if we're not building the sibling or action menus
  394. -->
  395. <xts:block id="response" nodelist="env, relationships, QueryRelationshipsByType, user" type="exec" dependency="getMeta" mode="interpret" processor="XSLT" condition=".[not(/root/env/param[@name='buildSiblingMenu']='true') and not(/root/env/param[@name='buildActionsMenu']='true')]" mandatory="false">
  396. <xsl:stylesheet version="1.0"
  397. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  398. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  399. xmlns:xos="http://developer.cognos.com/schemas/xts/output/"
  400. xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
  401. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  402. xmlns:meta="http://developer.cognos.com/schemas/xts/cogadmin/logicsheet/meta"
  403. exclude-result-prefixes="xsl xts SOAP-ENV xos bus xtsext meta">
  404. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  405. <xsl:key name="env-param" match="/root/env/param" use="@name"/>
  406. <xsl:template match="/">
  407. <xts:sequence>
  408. <xts:append select="/root/output/*[local-name()='part']/*[local-name()='entityBody']/fragment">
  409. <markup>
  410. <mimeType>text/html</mimeType>
  411. <markupXml>
  412. <xts:transform src="/cogadmin/transforms/presentation/renderFragment.xslt" processor="XSLT">
  413. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  414. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  415. <root>
  416. <!-- Generate UI markup using the response and metadata -->
  417. <xts:transform src="/cogadmin/transforms/gen-ui-markup/relationships.xslt" processor="XSLT">
  418. <xts:param name="messageBase">/messages/cogadminuimsgs.xml</xts:param>
  419. <xts:param name="logicsheet">/cogadmin/logicsheets/presentation/common.xslt</xts:param>
  420. <xts:param name="logicsheet">/cogadmin/logicsheets/admin.xslt</xts:param>
  421. <root>
  422. <!-- supported relationships response and QueryRelationshipsByTypeResponse -->
  423. <xts:queryNode select="/root/relationships | /root/QueryRelationshipsByType/* | /root/breadcrumbs"/>
  424. <contentLocale>
  425. <xsl:value-of select="/root/user/param[@name='contentLocale']"/>
  426. </contentLocale>
  427. <xts:queryNode select="/root/env | /root/system | /root/user"/>
  428. </root>
  429. </xts:transform>
  430. <xts:queryNode select="/root/system | /root/user"/>
  431. </root>
  432. </xts:transform>
  433. </markupXml>
  434. </markup>
  435. </xts:append>
  436. </xts:sequence>
  437. </xsl:template>
  438. </xsl:stylesheet>
  439. </xts:block>
  440. </xts:morphlet>