framework.xsl 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  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:qsf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/qs/framework/"
  15. xmlns:out="dummy-uri"
  16. xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt"
  17. xmlns:xts="http://developer.cognos.com/schemas/xts/"
  18. xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/"
  19. xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/"
  20. xmlns:utml="http://developer.cognos.com/schemas/xts/logicsheet/xslt/formlogic/">
  21. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  22. <xsl:namespace-alias stylesheet-prefix="out" result-prefix="xsl"/>
  23. <xsl:template match="qsf:variables">
  24. <out:variable name="back-url" select="/root/env/param[@name='ui.backURL']"/>
  25. <out:variable name="close-link" select="not(/root/env/param[@name='ui.backURL']) or /root/env/param[@name='ui.backURL']='' or /root/env/param[@name='ui.backURL']='null' or contains(/root/env/param[@name='ui.backURL'], 'javascript:close()')"/>
  26. </xsl:template>
  27. <xsl:template match="*">
  28. <xsl:copy>
  29. <xsl:copy-of select="@*"/>
  30. <xsl:apply-templates/>
  31. </xsl:copy>
  32. </xsl:template>
  33. </xsl:stylesheet>