xform_52to53.xsl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: fmmd
  5. (C) Copyright IBM Corp. 2003, 2013
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <!--
  10. ===============================================================================
  11. Model Upgrade 52 to 53 Notes:
  12. This is an XSLT transformation from a Bering schema version 52 model to a Bering
  13. schema version 53 model.
  14. This Upgrade is required to accomodate the following Model Schema changes.
  15. * functionSetID is now nested inside a functionSet container.
  16. ===============================================================================
  17. -->
  18. <!--XSL Transformation from a schema v53 model to a valid BMT schema v53 model-->
  19. <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">
  20. <xsl:include href="fmmd_generalTemplates.xsl"/>
  21. <xsl:strip-space elements="*"/>
  22. <xsl:output encoding="utf-8" method="xml" indent="no"/>
  23. <!-- Template: securityView property 'functionSetID' is now nested inside a functionSet container -->
  24. <xsl:template match="*[local-name()='securityView']/*[local-name()='functionSets']/*[local-name()='functionSetID']">
  25. <xsl:element name="functionSet">
  26. <xsl:call-template name="myCopy"/>
  27. </xsl:element>
  28. </xsl:template>
  29. <!-- Globlal variables-->
  30. <xsl:variable name="sEmptyNamespace" select="string(document('')/*/namespace::*[name()=''])"/>
  31. <xsl:variable name="nNewSchema" select="number(substring-before(substring-after($sEmptyNamespace, 'http://www.developer.cognos.com/schemas/bmt/'), '/'))"/>
  32. <xsl:variable name="nOldSchema" select="$nNewSchema - 1"/>
  33. </xsl:stylesheet>