12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: HTS
- (C) Copyright IBM Corp. 2005, 2010
- 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:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:req-params="http://developer.cognos.com/schemas/request/params"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xsl dlgctrl xtsext req-params xts">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="/">
- <xts:sequence>
- <xts:append select="/root">
- <potentialOwners>
- <xts:transform src="myinbox/transforms/buildEntries.xslt" processor="XSLT">
- <root>
- <env>
- <param name="selectedCamIds"><xsl:value-of select="/root/env/param[@name='selectedPotentialOwnersCamIds']"/></param>
- <param name="type"><xsl:value-of select="'to'"/></param>
- </env>
- </root>
- </xts:transform>
- </potentialOwners>
- </xts:append>
- <!--
- Send in the ones we built so we can identify duplicated i.e. ones that
- Exist in both pots and stakeholders
- -->
- <xts:append select="/root">
- <xts:transform src="myinbox/transforms/buildEntries.xslt" processor="XSLT">
- <root>
- <env>
- <param name="selectedCamIds"><xsl:value-of select="/root/env/param[@name='selectedStakeHoldersCamIds']"/></param>
- <param name="type"><xsl:value-of select="'cc'"/></param>
- <param name="currentEntries"><xts:queryNode select="/root/potentialOwners/selectedEntries/*"/></param>
- </env>
- </root>
- </xts:transform>
- </xts:append>
- <!-- Delete the nodes that exist in both stake and pots -->
- <xts:delete select="/root/potentialOwners/selectedEntries/selectedEntry[./searchPath = /root/selectedEntries/selectedEntry[count(./type) > 1 ]/searchPath]" mandatory="false"/>
- <!-- Append the rest, or what is left after deletion -->
- <xts:append select="/root/selectedEntries">
- <xts:queryNode select="/root/potentialOwners/selectedEntries/*"/>
- </xts:append>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|