faultHandlerMetadata.xsl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:xts="http://developer.cognos.com/schemas/xts/"
  15. exclude-result-prefixes="xsl xts">
  16. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  17. <xsl:template match="/root/fault">
  18. <xsl:choose>
  19. <xsl:when test="//*[local-name()='CAM']/*[local-name()='exception']//*[local-name()='promptInfo'] or contains(//*[local-name()='exception']/*[local-name()='message']/*[local-name()='messageString'], 'QE-DEF-0313')">
  20. <logonFault>timeout</logonFault>
  21. </xsl:when>
  22. <xsl:otherwise>
  23. <!-- send the fault along, don't change it so the regular fault handling can occur -->
  24. <soapFault>
  25. <xsl:copy-of select="."/>
  26. </soapFault>
  27. </xsl:otherwise>
  28. </xsl:choose>
  29. </xsl:template>
  30. <xsl:template match="text()"/>
  31. </xsl:stylesheet>