12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?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).
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:send="http://developer.cognos.com/schemas/xts/logic-sheet/xslt/brl/1/"
- xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:key name="env-param" match="/root/env/param" use="@name"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:choose>
- <!-- clear the PDF options -->
- <xsl:when test="key('env-param','option_op') = 'clear_pdf_options'">
- <xts:delete select="/root/env/param[starts-with(@name,'m_pdf_') or @name = 'm_ro_outputPageDefinition' or @name = 'm_ro_outputPageOrientation' or @name='checkbox_password_open' or @name='checkbox_access_options' or starts-with(@name,'preserve_pdf')]"/>
- <xts:append select="/root/env">
- <param name="preserve_pdf_userPwd">false</param>
- <param name="preserve_pdf_ownerPwd">false</param>
- </xts:append>
- </xsl:when>
- <!-- clear the report cache -->
- <xsl:when test="key('env-param','option_op') = 'clear_report_cache'">
- <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:delete xmlns:cm="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <objects xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="cm:baseClass[1]">
- <item xsi:type="cm:base">
- <searchPath xsi:type="cm:stringProp">
- <value xsi:type="xsd:string"><xsl:value-of select="concat(key('env-param','m_obj'),'/reportCache')"/></value>
- </searchPath>
- </item>
- </objects>
- <options xsi:type="cm:deleteOptions">
- <recursive xsi:type="xsd:boolean">true</recursive>
- <force xsi:type="xsd:boolean">true</force>
- </options>
- </cm:delete>
- </xts:transform>
- </send:request>
- </xts:transform>
- </xts:append>
- </xsl:when>
- </xsl:choose>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|