logic.xts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: cpscrn
  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. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/">
  13. <xts:block id="response" type="exec" mode="interpret" processor="XSLT">
  14. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xos="http://developer.cognos.com/schemas/xts/output/" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xts xos bus xtsext">
  15. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  16. <xsl:template match="/">
  17. <xts:sequence>
  18. <xts:append select="/root/output">
  19. <xos:part>
  20. <xos:entityHeader>
  21. <xos:param name="Content-Type">text/xml; charset=UTF-8</xos:param>
  22. </xos:entityHeader>
  23. <xos:entityBody>
  24. <response>
  25. <logic>
  26. <xts:request protocol="FILEREAD" cache="true" faultBlock="requestFault" target="/version.xml"/>
  27. </logic>
  28. </response>
  29. </xos:entityBody>
  30. </xos:part>
  31. </xts:append>
  32. </xts:sequence>
  33. </xsl:template>
  34. </xsl:stylesheet>
  35. </xts:block>
  36. <!-- Handle errors which occur when reading the version XML file. Provide default values. -->
  37. <xts:block id="requestFault" type="fault" processor="XML" nodelist="">
  38. <logic>
  39. <version productMajor="8" productMinor="" isRelease="false"/>
  40. </logic>
  41. </xts:block>
  42. </xts:morphlet>