123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- 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).
- -->
- <!--
- ===============================================================================================
- Logic sheet for dealing with "special" properties stored in CM.
- ===============================================================================================
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
- exclude-result-prefixes="xsl xts cm xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <cm:update xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <cm:objects>
- <cm:account>
- <cm:searchPath>~</cm:searchPath>
- <options xsi:type="cm:optionArrayProp">
- <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:option[{count(/cm:queryResponse//cm:account/options/value/item)}]">
- <xsl:for-each select="/cm:queryResponse//cm:account/options/value/item[name!='showOptionSummary']">
- <xsl:copy-of select="."/>
- </xsl:for-each>
- <item xsi:type="cm:portalOptionBoolean">
- <name xsi:type="cm:portalOptionEnum">showOptionSummary</name>
- <value xsi:type="xsd:boolean">false</value>
- </item>
- </value>
- </options>
- </cm:account>
- </cm:objects>
- </cm:update>
- </xsl:template>
- </xsl:stylesheet>
|