<?xml version="1.0"?>
<!--
@author Last Changed:$Author: theegarten $
@version $Revision: 4772 $
@date $Date: 2010-09-06 15:04:22 +0200 (Mo, 06 Sep 2010) $
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<!---->
	<!-- imports -->
	<!---->
	<!-- template to insert -->
	<xsl:template name="ID">
		<!---->
		<!-- parameter -->
		<xsl:param name="name"/>
		<xsl:param name="id"/>
		<xsl:param name="agencyRole"/>
		<xsl:param name="variationID"/>
		<xsl:param name="schemeName"/>
		<xsl:param name="schemeAgencyID"/>
		<xsl:param name="accountingEntity"/>
		<xsl:param name="location"/>
		<!---->
		<xsl:element name="{$name}">
			<xsl:if test="$agencyRole != ''">
				<xsl:attribute name="agencyRole"><xsl:value-of select="$agencyRole"/></xsl:attribute>
			</xsl:if>
			<xsl:element name="ID">
				<xsl:if test="$accountingEntity != ''">
					<xsl:attribute name="accountingEntity"><xsl:value-of select="$accountingEntity"/></xsl:attribute>
				</xsl:if>
				<xsl:if test="$location != ''">
					<xsl:attribute name="location"><xsl:value-of select="$location"/></xsl:attribute>
				</xsl:if>
				<xsl:if test="$schemeName != ''">
					<xsl:attribute name="schemeName"><xsl:value-of select="$schemeName"/></xsl:attribute>
				</xsl:if>
				<xsl:if test="$schemeAgencyID != ''">
					<xsl:attribute name="schemeAgencyID"><xsl:value-of select="$schemeAgencyID"/></xsl:attribute>
				</xsl:if>
				<xsl:if test="$variationID != ''">
					<xsl:attribute name="variationID"><xsl:value-of select="$variationID"/></xsl:attribute>
				</xsl:if>
				<xsl:value-of select="$id"/>
			</xsl:element>
		</xsl:element>
	</xsl:template>
</xsl:stylesheet>
