1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- Licensed Materials - Property of IBM
- IBM Cognos Products: ps
- (C) Copyright IBM Corp. 2010, 2011
- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- -->
- <!--
- This stylesheet merges the parent target location query result with the corresponding target search path
- It is meant to be use in the checkTargetLocationExistence block of new_deployment2.xts
- -->
- <xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:cm="http://developer.cognos.com/schemas/xts-cm/1/">
- <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
-
-
- <xsl:template match="/root" >
- <xsl:apply-templates select="*"/>
- </xsl:template>
-
- <xsl:template match="/root/cm:searchPath" >
- </xsl:template>
-
- <xsl:template match="cm:queryResponse">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <xsl:for-each select="cm:queryReply">
- <xsl:copy>
- <xsl:variable name="currentIndex" select="position()"/>
- <xsl:if test="/root/cm:searchPath[$currentIndex]">
- <xsl:attribute name="package" ><xsl:value-of select="/root/cm:searchPath[$currentIndex]"/></xsl:attribute>
- </xsl:if>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:for-each>
- </xsl:copy>
- </xsl:template>
-
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
-
- </xsl:stylesheet>
|