123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: AGS
- (C) Copyright IBM Corp. 2005, 2009
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <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">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
- <xsl:template match="/root/*[local-name()='biBusHeader']">
- <xsl:copy>
- <xsl:for-each select="./*">
- <xsl:choose>
- <xsl:when test="local-name()='dispatcherTransportVars'">
- <!-- add requester re:RTC story 37223 -->
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <item xsi:type="bus:dispatcherTransportVar">
- <name xsi:type="xsd:string">requester</name>
- <value xsi:type="xsd:string">
- <xsl:text/>ags<xsl:text/>
- <xsl:if test="/root/requester">
- <xsl:text/>:<xsl:value-of select="/root/requester"/>
- <xsl:text/>
- </xsl:if>
- </value>
- </item>
- <xsl:copy-of select="*[not(./*[local-name()='name']='requester')]"/>
- </xsl:copy>
- </xsl:when>
- <xsl:otherwise>
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:copy-of select="*"/>
- </xsl:copy>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:copy>
- </xsl:template>
- <xsl:template match="/root/requester"/>
- </xsl:stylesheet>
|