extractEmailOptions.xslt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: ps
  5. (C) Copyright IBM Corp. 2005, 2011
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xsl:stylesheet version="1.0"
  13. xmlns:cm="http://developer.cognos.com/schemas/bibus/3/"
  14. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  15. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  16. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  18. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
  19. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  20. <xsl:template match="*[local-name()='options']" priority="1">
  21. <emailOptions>
  22. <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')]]"/>
  23. <xsl:copy-of select="*/*[local-name()='item' and contains(@*[local-name()='type'],'bus:deliveryOptionSearchPathMultipleObjectArray') and *[local-name()='name' and .='to']]"/>
  24. </emailOptions>
  25. <mobileOptions>
  26. <xsl:copy-of select="*/*[local-name()='item' and contains(@*[local-name()='type'],'bus:mobileOptionSearchPathMultipleObjectArray') and *[local-name()='name' and .='to']]"/>
  27. </mobileOptions>
  28. <notEmailOptions>
  29. <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')]]"/>
  30. </notEmailOptions>
  31. </xsl:template>
  32. </xsl:stylesheet>