123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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 51 to 52 Notes:
- This is an XSLT transformation from a Bering schema version 51 model to a Bering
- schema version 52 model.
- This Upgrade is required to accomodate the following Model Schema changes.
- * The hierarchy "network" property for has been removed and has been instead replaced with the property "parentChild".
- ===============================================================================
- -->
- <xsl:stylesheet xmlns="http://www.developer.cognos.com/schemas/bmt/52/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: Replace the hierarchy 'network' property introduced in schema 51 with the new 'parentChild' property -->
- <xsl:template match="*[local-name()='hierarchy']/*[local-name()='network']">
- <!-- The parentChild property is of type boolean and set to false for upgraded models -->
- <xsl:element name="parentChild">false</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>
|