generate_defaults.xslt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:xsl="http://www.w3.org/1999/XSL/Transform"
  14. xmlns:dlgctrl="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/controller-templates/"
  15. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  16. xmlns:req-params="http://developer.cognos.com/schemas/request/params"
  17. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  18. exclude-result-prefixes="xsl dlgctrl xtsext req-params xts">
  19. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  20. <xsl:template match="/">
  21. <xts:sequence>
  22. <dlgctrl:XTS2Request>
  23. <dlgctrl:target>/portal/emailOptions/email_options.xts</dlgctrl:target>
  24. <dlgctrl:stackName>email_options</dlgctrl:stackName>
  25. <dlgctrl:requestState>email|genDefault</dlgctrl:requestState>
  26. <dlgctrl:param name="defaultEmailAsAttachment">
  27. <xsl:choose>
  28. <!-- special case where we want the default delivery options to email as attachment -->
  29. <xsl:when test="/root/env/param[@name='run_with_options_allowEmailAsAttachment']"><xsl:value-of select="/root/env/param[@name='run_with_options_allowEmailAsAttachment']"/></xsl:when>
  30. <xsl:otherwise>false</xsl:otherwise>
  31. </xsl:choose>
  32. </dlgctrl:param>
  33. <dlgctrl:param name="usePowerPlay8Options"><xsl:value-of select="contains(' powerPlay8Report powerPlay8ReportView ', concat(' ', /root/env/param[@name='m_class'],' '))"/></dlgctrl:param>\
  34. </dlgctrl:XTS2Request>
  35. </xts:sequence>
  36. </xsl:template>
  37. </xsl:stylesheet>