1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?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:cm="http://developer.cognos.com/schemas/xts-cm/1/"
- xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- exclude-result-prefixes="xtsext cm xts">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
- <xsl:template match="*">
- <xsl:choose>
- <xsl:when test="./asParam='true'">
- <param name="emailDescription">
- <xsl:call-template name="genDescription"/>
- </param>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="genDescription"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="genDescription">
- <xsl:choose>
- <xsl:when test="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='userName'] != ''">
- <xts:string id ="IDS_EMAIL_DISPLAY_USER">
- <xts:param name="defaultName"><xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='defaultName']"/></xts:param>
- <xts:param name="userName"><xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='userName']"/></xts:param>
- </xts:string>
- </xsl:when>
- <xsl:when test="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='defaultName'] != ''">
- <xsl:value-of select="/root/*[local-name()='queryResponse']/*[local-name()='queryReply']/*/*[local-name()='defaultName']"/>
- </xsl:when>
- <xsl:otherwise><xts:string id="IDS_OTHERRUN_EMAIL_UNKNOWN_RECIPIENT"/></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
|