1234567891011121314151617181920212223242526272829 |
- <?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>
- <!-- If we are supposed to ensure that any passed back url is in the same domain as CRN then make that check and replace it if necessary -->
- <xsl:if test="/root/env/param[@name = 'backURL'] and not(starts-with(/root/env/param[@name = 'backURL'], /root/http/param[@name='SCRIPT_NAME'])) ">
- <xts:replace select="/root/env/param[@name = 'backURL']">
- <param name="backURL"><xsl:value-of select="/root/http/param[@name='SCRIPT_NAME']"/>?<xsl:value-of select="/root/system/param[@name = 'COGNOSHome']"/></param>
- </xts:replace>
- </xsl:if>
- </xts:sequence>
- </xsl:template>
- </xsl:stylesheet>
|