1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?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 52 to 53 Notes:
- This is an XSLT transformation from a Bering schema version 52 model to a Bering
- schema version 53 model.
- This Upgrade is required to accomodate the following Model Schema changes.
- * functionSetID is now nested inside a functionSet container.
- ===============================================================================
- -->
- <!--XSL Transformation from a schema v53 model to a valid BMT schema v53 model-->
- <xsl:stylesheet xmlns="http://www.developer.cognos.com/schemas/bmt/53/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: securityView property 'functionSetID' is now nested inside a functionSet container -->
- <xsl:template match="*[local-name()='securityView']/*[local-name()='functionSets']/*[local-name()='functionSetID']">
- <xsl:element name="functionSet">
- <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:stylesheet>
|