<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"
    >
    
    <xsl:template name="getCsvType">
		<xsl:param name="posCd" />
		<xsl:choose>
			<xsl:when test="$posCd = 'P29' or $posCd = 'P33'  ">
				<xsl:value-of select="'2'" />
			</xsl:when>
			<xsl:when test="$posCd = 'P10' or $posCd = 'P13' or $posCd = 'P15' or $posCd = 'P27' or $posCd = 'P32' or $posCd = 'P34' or $posCd = 'P36' or $posCd = 'P38'  ">
				<xsl:value-of select="'2'" />
			</xsl:when>
			<xsl:when test="$posCd = 'P9' or $posCd = 'P14' or $posCd = 'P31' or $posCd = 'P37' or $posCd = 'P42' or $posCd = 'P43'  ">
				<xsl:value-of select="'2'" />
			</xsl:when>
			<xsl:otherwise>
				<xsl:value-of select="'1'" />
			</xsl:otherwise>
		</xsl:choose>

	</xsl:template>
    
    
	<xsl:template name="findeKostenstelle">
		<xsl:param name="posCd" />
		<xsl:param name="buNm" />
		
		<xsl:choose>
						<xsl:when test="$posCd='P10'">
							<xsl:value-of select="'160'" />
						</xsl:when>
						<xsl:when test="$posCd='P13'">
							<xsl:value-of select="'80'" />
						</xsl:when>
						<xsl:when test="$posCd='P15'">
							<xsl:value-of select="'100'" />
						</xsl:when>
						<xsl:when test="$posCd='P27'">
							<xsl:value-of select="'150'" />
						</xsl:when>
						<xsl:when test="$posCd='P29'">
							<xsl:value-of select="'20'" />
						</xsl:when>
						<xsl:when test="$posCd='P32'">
							<xsl:value-of select="'170'" />
						</xsl:when>
						<xsl:when test="$posCd='P33'">
							<xsl:value-of select="'40'" />
						</xsl:when>
						<xsl:when test="$posCd='P34'">
							<xsl:value-of select="'180'" />
						</xsl:when>
						<xsl:when test="$posCd='P36'">
							<xsl:value-of select="'190'" />
						</xsl:when>
						<xsl:when test="$posCd='P38'">
							<xsl:value-of select="'200'" />
						</xsl:when>
						
						<!--  -->
						<xsl:when test="$posCd='P9'">
							<xsl:value-of select="'6'" />
						</xsl:when>
						<xsl:when test="$posCd='P14'">
							<xsl:value-of select="'12'" />
						</xsl:when>
						<xsl:when test="$posCd='P31'">
							<xsl:value-of select="'10'" />
						</xsl:when>
						<xsl:when test="$posCd='P37'">
							<xsl:value-of select="'5'" />
						</xsl:when>
						<xsl:when test="$posCd='P42'">
							<xsl:value-of select="'16'" />
						</xsl:when>
						<xsl:when test="$posCd='P43'">
							<xsl:value-of select="'18'" />
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="$buNm" />
						</xsl:otherwise>
					</xsl:choose>
		
		
		</xsl:template>
		
		
		<xsl:template name="findeGegenkonto">
		<xsl:param name="posCd" />
		<xsl:choose>
						<xsl:when test="$posCd='P10'">
							 <xsl:value-of select="'2714'" />
						</xsl:when>
						<xsl:when test="$posCd='P13'">
							
							<xsl:value-of select="'2706'" />
						</xsl:when>
						<xsl:when test="$posCd='P15'">
							
							<xsl:value-of select="'2708'" />
						</xsl:when>
						<xsl:when test="$posCd='P27'">
							
							<xsl:value-of select="'2713'" />
						</xsl:when>
						<xsl:when test="$posCd='P29'">
							
							<xsl:value-of select="'2700'" />
						</xsl:when>
						<xsl:when test="$posCd='P32'">
							
							<xsl:value-of select="'2715'" />
						</xsl:when>
						<xsl:when test="$posCd='P33'">
							
							<xsl:value-of select="'2704'" />
						</xsl:when>
						<xsl:when test="$posCd='P34'">
							
							<xsl:value-of select="'2716'" />
						</xsl:when>
						<xsl:when test="$posCd='P36'">
							
							<xsl:value-of select="'2717'" />
						</xsl:when>
						<xsl:when test="$posCd='P38'">
							
							<xsl:value-of select="'2718'" />
						</xsl:when>
						
						<!--  -->
						<xsl:when test="$posCd='P9'">
							<xsl:value-of select="'27060'" />
						</xsl:when>
						<xsl:when test="$posCd='P14'">
							<xsl:value-of select="'27120'" />
						</xsl:when>
						<xsl:when test="$posCd='P31'">
							<xsl:value-of select="'27100'" />
						</xsl:when>
						<xsl:when test="$posCd='P37'">
							<xsl:value-of select="'27050'" />
						</xsl:when>
						<xsl:when test="$posCd='P42'">
							<xsl:value-of select="'27160'" />
						</xsl:when>
						<xsl:when test="$posCd='P43'">
							<xsl:value-of select="'27180'" />
						</xsl:when>
					<xsl:otherwise>
							
							<xsl:value-of select="'1600'" />
						</xsl:otherwise>
					</xsl:choose>
		
		
		</xsl:template>
		
    </xsl:stylesheet>