<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes"><!--  Stylesheet met specifieke templates en variabelen voor de generatie van grafieken  Auteur: Rob Kops (Rabobank Nederland)-->	<xsl:template name="staaf">		<xsl:param name="titel"/>		<xsl:param name="xnam"/>		<xsl:param name="ynam"/>		<xsl:param name="count"/>		<xsl:param name="nam1"/>		<xsl:param name="val1"/>		<xsl:param name="nam2"/>		<xsl:param name="val2"/>		<xsl:param name="nam3"/>		<xsl:param name="val3"/>		<xsl:param name="nam4"/>		<xsl:param name="val4"/>		<xsl:param name="nam5"/>		<xsl:param name="val5"/>		<xsl:param name="nam6"/>		<xsl:param name="val6"/>		<xsl:param name="nam7"/>		<xsl:param name="val7"/>		<xsl:param name="nam8"/>		<xsl:param name="val8"/>		<xsl:param name="nam9"/>		<xsl:param name="val9"/>		<fo:block>       		<xsl:variable name="step" select="400 div $count div 4" />			<fo:instream-foreign-object>				<svg width="500" height="400" viewBox="0 0 500 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">	<!-- include default stylesheet if none specified -->	<defs>		<style type="text/css"><![CDATA[.svgBackground{	fill:#ffffff;}.graphBackground{	fill:#ffffff;}/* graphs titles */.mainTitle{	text-anchor: middle;	fill: #000000;	font-size: 20px;	font-family: "myriad-bolditalic", sans-serif;	font-weight: normal;}.subTitle{	text-anchor: middle;	fill: #999999;	font-size: 12px;	font-family: "myriad", sans-serif;	font-weight: normal;}.axis{	stroke: #000000;	stroke-width: 1px;}.guideLines{	stroke: #666666;	stroke-width: 1px;}.xAxisLabels{	text-anchor: left;	fill: #000000;	font-size: 10px;	font-family: "myriad", sans-serif;	font-weight: normal;}.yAxisLabels{	text-anchor: left;	text-path: 	fill: #000000;	font-size: 10px;	font-family: "myriad", sans-serif;	font-weight: normal;}.xAxisTitle{	text-anchor: middle;	fill: #000000;	font-size: 14px;	font-family: "myriad", sans-serif;	font-weight: normal;}.yAxisTitle{	fill: #000000;	writing-mode: tb; 	glyph-orientation-vertical: 0;	text-anchor: middle;	font-size: 14px;	font-family: "myriad", sans-serif;	font-weight: normal;}.dataPointLabel{	fill: #000000;	text-anchor:middle;	font-size: 10px;	font-family: "myriad", sans-serif;	font-weight: normal;}/* default fill styles */.fill1{	fill: #88AACC;	fill-opacity: 1;	stroke: none;	stroke-width: 1px;	}.fill2{	fill: #660066;	fill-opacity: 1;	stroke: none;	stroke-width: 1px;	}.fill3{	fill-opacity: 1;	fill: #AA7799;	stroke: none;	stroke-width: 1px;	}.fill4{	fill-opacity: 1;	fill: #AAAAAA;	stroke: none;	stroke-width: 1px;	}.fill5{	fill-opacity: 1;	fill: #000000;	stroke: none;	stroke-width: 1px;	}.fill6{	fill-opacity: 1;	fill: #000099;	stroke: none;	stroke-width: 1px;	}.fill7{	fill-opacity: 1;	fill: #0066CC;	stroke: none;	stroke-width: 1px;	}.fill8{	fill-opacity: 1;	fill: #CCCCFF;	stroke: none;	stroke-width: 1px;	}.fill9{	fill-opacity: 1;	fill: #FF0000;	stroke: none;	stroke-width: 1px;	}.fill10{	fill-opacity: 1;	fill: #FFFF00;	stroke: none;	stroke-width: 1px;	}/* default line styles */.line1{	fill: none;	stroke: #ff0000;	stroke-width: 1px;	}.line2{	fill: none;	stroke: #0000ff;	stroke-width: 1px;	}.line3{	fill: none;	stroke: #00ff00;	stroke-width: 1px;	}.line4{	fill: none;	stroke: #ffcc00;	stroke-width: 1px;	}.line5{	fill: none;	stroke: #00ccff;	stroke-width: 1px;	}.line6{	fill: none;	stroke: #ff00ff;	stroke-width: 1px;	}.line7{	fill: none;	stroke: #00ffff;	stroke-width: 1px;	}.line8{	fill: none;	stroke: #ffff00;	stroke-width: 1px;	}.line9{	fill: none;	stroke: #ccc6666;	stroke-width: 1px;	}.line10{	fill: none;	stroke: #663399;	stroke-width: 1px;	}/* default line styles */.key1,.dataPoint1{	fill: #ff0000;	stroke: none;	stroke-width: 1px;	}.key2,.dataPoint2{	fill: #0000ff;	stroke: none;	stroke-width: 1px;	}.key3,.dataPoint3{	fill: #00ff00;	stroke: none;	stroke-width: 1px;	}.key4,.dataPoint4{	fill: #ffcc00;	stroke: none;	stroke-width: 1px;	}.key5,.dataPoint5{	fill: #00ccff;	stroke: none;	stroke-width: 1px;	}.key6,.dataPoint6{	fill: #ff00ff;	stroke: none;	stroke-width: 1px;	}.key7,.dataPoint7{	fill: #00ffff;	stroke: none;	stroke-width: 1px;	}.key8,.dataPoint8{	fill: #ffff00;	stroke: none;	stroke-width: 1px;	}.key9,.dataPoint9{	fill: #cc6666;	stroke: none;	stroke-width: 1px;	}.key10,.dataPoint10{	fill: #663399;	stroke: none;	stroke-width: 1px;	}.keyText{	fill: #000000;	text-anchor:start;	font-size: 10px;	font-family: "myriad", sans-serif;	font-weight: normal;}]]></style>	</defs>	<!-- svg bg -->	<rect x="0" y="0" width="500" height="300" style="fill: none; stroke: none;"/>	<line x1="50" y1="260" x2="450" y2="260" stroke="black" stroke-width="1"/>	<line x1="50" y1="260" x2="50" y2="270" stroke="black" stroke-width="1"/>	<!-- //////////////////////////////  AXIS DISTRIBUTIONS //////////////////////////// -->	<text x="30" y="260" class="yAxisLabels">0%</text>	<text x="30" y="210" class="yAxisLabels">20%</text>	<line x1="50" y1="210" x2="450" y2="210" stroke="black" stroke-width="1"/>	<text x="30" y="160" class="yAxisLabels">40%</text>	<line x1="50" y1="160" x2="450" y2="160" stroke="black" stroke-width="1"/>	<text x="30" y="110" class="yAxisLabels">60%</text>	<line x1="50" y1="110" x2="450" y2="110" stroke="black" stroke-width="1"/>	<text x="30" y="60" class="yAxisLabels">80%</text>	<line x1="50" y1="60" x2="450" y2="60" stroke="black" stroke-width="1"/>	<text x="30" y="10" class="yAxisLabels">100%</text>	<line x1="50" y1="10" x2="450" y2="10" stroke="black" stroke-width="1"/>	<!-- //////////////////////////////  AXIS TITLES ////////////////////////////// -->	<!-- x axis title -->	<text x="20" y="190" class="xAxisTitle"><xsl:value-of select="$xnam"/></text>	<!-- y axis title -->	<text x="200" y="290" class="yAxisTitle"><xsl:value-of select="$ynam"/></text>	<!-- //////////////////////////////  SHOW DATA ////////////////////////////// --> 	<xsl:if test="$val1 != ''">       	<xsl:variable name="dh" select="$val1 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill1"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam1"/></text>	</xsl:if> 	<xsl:if test="$val2 != ''">       	<xsl:variable name="dh" select="$val2 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 4" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill2"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam2"/></text>	</xsl:if> 	<xsl:if test="$val3 != ''">       	<xsl:variable name="dh" select="$val3 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 8" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill3"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam3"/></text>	</xsl:if> 	<xsl:if test="$val4 != ''">       	<xsl:variable name="dh" select="$val4 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 12" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill4"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam4"/></text>	</xsl:if> 	<xsl:if test="$val5 != ''">       	<xsl:variable name="dh" select="$val5 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 16" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill5"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam5"/></text>	</xsl:if> 	<xsl:if test="$val6 != ''">       	<xsl:variable name="dh" select="$val6 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 20" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill6"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam6"/></text>	</xsl:if> 	<xsl:if test="$val7 != ''">       	<xsl:variable name="dh" select="$val7 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 24" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill7"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam7"/></text>	</xsl:if> 	<xsl:if test="$val8 != ''">       	<xsl:variable name="dh" select="$val8 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 28" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill8"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam8"/></text>	</xsl:if> 	<xsl:if test="$val9 != ''">       	<xsl:variable name="dh" select="$val9 * 2.5" />       	<xsl:variable name="dy" select="260 - $dh" />       	<xsl:variable name="xg" select="50 + $step + $step * 32" />       	<xsl:variable name="xe" select="$xg +  $step * 3" />		<rect x="{$xg}" y="{$dy}" width="40" height="{$dh}" class="fill9"/>		<line x1="{$xe}" y1="260" x2="{$xe}" y2="270" stroke="black" stroke-width="1"/>		<text x="{$xg} - 10" y="270" class="xAxisLabels"><xsl:value-of select="$nam9"/></text>	</xsl:if>	<!-- //////////////////////////////// MAIN TITLES ////////////////////////// -->		<text x="250" y="320" class="mainTitle"><xsl:value-of select="$titel"/></text>				</svg>			</fo:instream-foreign-object>		</fo:block>    </xsl:template></xsl:stylesheet>
