123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2005, 2011
- 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).
- -->
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/">
- <xts:sequence>
- <xsl:if test="/root/env/param[@name='sc_target_name']">
- <xts:replace select="/root/env/param[@name='m_name']">
- <param name="m_name"><xsl:value-of select="/root/env/param[@name='sc_target_name']"/></param>
- </xts:replace>
- <xts:delete select="/root/env/param[@name='sc_target_name']"/>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='sc_target_class']">
- <xts:replace select="/root/env/param[@name='m_class']">
- <param name="m_class"><xsl:value-of select="/root/env/param[@name='sc_target_class']"/></param>
- </xts:replace>
- <xts:delete select="/root/env/param[@name='sc_target_class']"/>
- </xsl:if>
- <xsl:if test="/root/env/param[@name='sc_target_obj']">
- <xts:replace select="/root/env/param[@name='m_obj']">
- <param name="m_obj"><xsl:value-of select="/root/env/param[@name='sc_target_obj']"/></param>
- </xts:replace>
- <xts:delete select="/root/env/param[@name='sc_target_obj']"/>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|