transportRequester.xslt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: AGS
  5. (C) Copyright IBM Corp. 2005, 2009
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:bus="http://developer.cognos.com/schemas/bibus/3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:fo="http://www.w3.org/1999/XSL/Format">
  9. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
  10. <xsl:template match="/root/*[local-name()='biBusHeader']">
  11. <xsl:copy>
  12. <xsl:for-each select="./*">
  13. <xsl:choose>
  14. <xsl:when test="local-name()='dispatcherTransportVars'">
  15. <!-- add requester re:RTC story 37223 -->
  16. <xsl:copy>
  17. <xsl:copy-of select="@*"/>
  18. <item xsi:type="bus:dispatcherTransportVar">
  19. <name xsi:type="xsd:string">requester</name>
  20. <value xsi:type="xsd:string">
  21. <xsl:text/>ags<xsl:text/>
  22. <xsl:if test="/root/requester">
  23. <xsl:text/>:<xsl:value-of select="/root/requester"/>
  24. <xsl:text/>
  25. </xsl:if>
  26. </value>
  27. </item>
  28. <xsl:copy-of select="*[not(./*[local-name()='name']='requester')]"/>
  29. </xsl:copy>
  30. </xsl:when>
  31. <xsl:otherwise>
  32. <xsl:copy>
  33. <xsl:copy-of select="@*"/>
  34. <xsl:copy-of select="*"/>
  35. </xsl:copy>
  36. </xsl:otherwise>
  37. </xsl:choose>
  38. </xsl:for-each>
  39. </xsl:copy>
  40. </xsl:template>
  41. <xsl:template match="/root/requester"/>
  42. </xsl:stylesheet>