1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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:cm="http://developer.cognos.com/schemas/bibus/3/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xts="http://developer.cognos.com/schemas/xts/"
- xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
-
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="*[local-name()='options']" priority="1">
- <emailOptions>
- <xsl:copy-of select="*/*[local-name()='item' and *[local-name()='name' and (.='emailToAddress' or .='emailTo' or .='emailSubject' or .='emailBody' or .='subject' or .='memoPart' or .='toAddress' or .='ccAddress' or .='bccAddress' or .='cc' or .='bcc' or .='emailAsAttachment' or .='emailAsURL')]]"/>
- <xsl:copy-of select="*/*[local-name()='item' and contains(@*[local-name()='type'],'bus:deliveryOptionSearchPathMultipleObjectArray') and *[local-name()='name' and .='to']]"/>
- </emailOptions>
- <mobileOptions>
- <xsl:copy-of select="*/*[local-name()='item' and contains(@*[local-name()='type'],'bus:mobileOptionSearchPathMultipleObjectArray') and *[local-name()='name' and .='to']]"/>
- </mobileOptions>
- <notEmailOptions>
- <xsl:copy-of select="*/*[local-name()='item' and *[local-name()='name' and (.!='emailToAddress'and .!='emailTo' and .!='emailSubject' and .!='emailBody' and .!='subject' and .!='memoPart' and .!='toAddress' and .!='ccAddress' and .!='bccAddress' and .!='to' and .!='cc' and .!='bcc' and .!='emailAsAttachment' and .!='emailAsURL')]]"/>
- </notEmailOptions>
- </xsl:template>
- </xsl:stylesheet>
|