123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/" xmlns:x="x">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="*" priority="0">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
- <xsl:template match="object" priority="2"/>
- <xsl:template match="*[local-name()='policy' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']" priority="2">
- <xsl:if test="not(*[local-name()='deleted' and namespace-uri()='x'])">
- <xsl:element name="{name()}" namespace="{namespace-uri()}">
- <xsl:copy-of select="@*"/>
- <xsl:element name="securityObject" namespace="{namespace-uri()}">
- <xsl:element name="searchPath" namespace="{namespace-uri()}">
- <xsl:value-of select="*/*[local-name()='searchPath' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']"/>
- </xsl:element>
- </xsl:element>
- <xsl:apply-templates select="*[local-name()='permission' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']"/>
- </xsl:element>
- </xsl:if>
- </xsl:template>
- <xsl:template match="*[local-name()='permission' and namespace-uri()='http://developer.cognos.com/schemas/xts-cm/1/']" priority="2">
- <xsl:copy-of select="."/>
- </xsl:template>
- <xsl:template match="text()" priority="0"/>
- </xsl:stylesheet>
|