<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" encoding="UTF-8"/>


<xsl:template match="/">
<xsl:comment>factuurnr;factuurdatum;opdrachtnr;omschrijving;bedrag;btwperc;btwbedrag;document</xsl:comment>
<xsl:for-each select="Invoice">
<xsl:for-each select="InvoiceLine">
<xsl:value-of select="../ID"/>;<xsl:value-of select="../IssueDate"/>;<xsl:value-of select="../OrderReference/ID"/>;Factuurregel <xsl:value-of select="position()"/>;<xsl:value-of select="TaxTotal/TaxSubtotal/TaxableAmount"/>;<xsl:value-of select="TaxTotal/TaxSubtotal/TaxCategory/Percent"/>;<xsl:value-of select="TaxTotal/TaxSubtotal/TaxAmount"/>;<xsl:value-of select="../File"/>;&#10;</xsl:for-each></xsl:for-each>
</xsl:template>

<xsl:template name="puntkomma">
   <xsl:param name="p_string"/>
	<xsl:value-of select="translate($p_string,';',':')"/>
</xsl:template>

</xsl:stylesheet>
