1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?xml version="1.0"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: fmmd
- (C) Copyright IBM Corp. 2003, 2013
- US Government Users Restricted Rights - Use, duplication or disclosure
- restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- ===============================================================================
- Model Upgrade 54 to 55 Notes:
- This is an XSLT transformation from a Bering schema version 54 model to a Bering
- schema version 55 model.
- This Upgrade is required to accomodate the following Model Schema changes.
- * Move the role names introduced in schema 54 into a role container
- ============================================================================================ -->
- <xsl:stylesheet xmlns="http://www.developer.cognos.com/schemas/bmt/55/0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <xsl:include href="fmmd_generalTemplates.xsl"/>
- <xsl:strip-space elements="*"/>
- <xsl:output encoding="utf-8" method="xml" indent="no"/>
- <!-- Template: Move the role names into a role container -->
- <xsl:template match="*[local-name()='roles']/*[local-name()='name']">
- <!-- Insert a role element -->
- <xsl:element name="role">
- <!-- Annotate it-->
- <xsl:call-template name="annotate">
- <xsl:with-param name="value" select="$strAddingRole"/>
- </xsl:call-template>
- <!-- Copy -->
- <xsl:call-template name="myCopy"/>
- </xsl:element>
- </xsl:template>
- <!-- Globlal variables-->
- <xsl:variable name="sEmptyNamespace" select="string(document('')/*/namespace::*[name()=''])"/>
- <xsl:variable name="nNewSchema" select="number(substring-before(substring-after($sEmptyNamespace, 'http://www.developer.cognos.com/schemas/bmt/'), '/'))"/>
- <xsl:variable name="nOldSchema" select="$nNewSchema - 1"/>
- <xsl:variable name="strAddingRole">
- <xsl:call-template name="getLocalizedString">
- <xsl:with-param name="stringID" select="$MODELUPGRADE_ADDING_ROLE"/>
- <xsl:with-param name="localeVal" select="$defaultLocale"/>
- </xsl:call-template>
- </xsl:variable>
- </xsl:stylesheet>
|