123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- exclude-result-prefixes=" xsl xtsext">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/policies/*[local-name() = 'policy']">
- <xsl:element name="{local-name()}" namespace="{namespace-uri()}">
- <xsl:for-each select="*[local-name() != 'permission' and local-name() != 'added' and local-name() != 'deleted' and local-name() != 'changed']">
- <xsl:element name="{local-name()}" namespace="{namespace-uri()}">
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- <xsl:element name="guid" namespace="{namespace-uri()}">
- <xsl:value-of select="xtsext:generateGUID()"/>
- </xsl:element>
- </xsl:element>
- </xsl:for-each>
-
- <xsl:copy-of select="*[local-name() = 'permission' or local-name() = 'added' or local-name() = 'deleted' or local-name() = 'changed']"/>
- </xsl:element>
- </xsl:template>
- </xsl:stylesheet>
|