<?xml version="1.0" encoding="UTF-8"?>
<!--
## This Velocity template is used to generate an XSLT used to remove
## an existing data source
## author:  chi.lin@unisys.com
## version: $Revision: 42575 $
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no" indent="yes"/>

    <!-- Find the desired data source and skip it -->
    <xsl:template match="/datasources/*[jndi-name='${jndi-name}']">  
    </xsl:template>

    <!-- Copy all other data -->
    <xsl:template match="@*|node()">
        <xsl:copy>
          <xsl:apply-templates select="@*|node()" />
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>
