<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ssg="http://www.schueco-service.de/pricelist">
<xsl:output method="text" encoding="utf-8"/>

<!-- This section generates a PROMET CSV file without surrrounding for each field and ; as delimiter -->
<xsl:template match="/ssg:Pricelist">
	<xsl:text>ArticleNumber;Description;LengthOfPolish;Surface;Weight;NetWeight;Price;MassPrice;QuantityTypePrice;MassMin;QuantityTypeMassMin;DiscountCode;QuantityType;Length;Quantity;ArticleQuantityType;ProductKey1;ProductKey2;Stock;ArticleAttribute
</xsl:text><xsl:apply-templates/>
</xsl:template>

<xsl:template match="ssg:Article">
<xsl:value-of select="translate(ssg:ArticleNumber/text(),';','-')"/>;<xsl:value-of select="translate(ssg:Description/text(),';','-')"/>;<xsl:value-of select="translate(ssg:LengthOfPolish/text(),'.',',')"/>;<xsl:value-of select="translate(ssg:Surface/text(),'.',',')"/>;<xsl:value-of select="translate(ssg:Weight/text(),'.',',')"/>;<xsl:value-of select="translate(ssg:Weight/text(),'.',',')"/>;<xsl:value-of select="translate(ssg:Price/text(),'.',',')"/>;;<xsl:value-of select="ssg:QuantityTypePrice/text()"/>;;;<xsl:value-of select="ssg:EDV-Code/text()"/>;<xsl:value-of select="ssg:QuantityType/text()"/>;<xsl:value-of select="translate(ssg:Length/text(),'.',',')"/>;<xsl:value-of select="ssg:Quantity/text()"/>;<xsl:value-of select="ssg:ArticleQuantityType/text()"/>;;;;;;
</xsl:template>
<!-- End of comma delimited section -->


<xsl:template match="text()"/>
</xsl:stylesheet>






