12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- BI and PM: qs
- (C) Copyright IBM Corp. 2001, 2017
- 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).
- *
- -->
- <!--
- *
- *
- * This stylesheet generates a Bering mini query from a baltic mini query.
- *
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:baltic="http://developer.cognos.com/schemas/report/1/" xmlns:date="http://exslt.org/dates-and-times" xmlns:exsl="http://exslt.org/common" xmlns:xalan="http://xml.apache.org/xalan" xmlns:java="http://xml.apache.org/xalan/java" extension-element-prefixes="xalan date exsl" exclude-result-prefixes="xalan java baltic date exsl">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" xalan:indent-amount="2" omit-xml-declaration="yes"/>
- <xsl:template match="/CRQReport">
- <xsl:choose>
- <xsl:when test="./@majorVersion > 0 and ./@majorVersion < 2">
- <xsl:element name="CRQReport">
- <xsl:for-each select="@*[name()!='majorVersion' and name()!='minorVersion']">
- <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
- </xsl:for-each>
- <xsl:attribute name="majorVersion">2</xsl:attribute>
- <xsl:attribute name="minorVersion">0</xsl:attribute>
- <!-- explcity turn off drill when upgrading reports -->
- <xsl:attribute name="enableDrill">false</xsl:attribute>
- <xsl:copy-of select="./*"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy-of select="."/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
|