Hi,
I need to write to an csv file,via xsl, which I have successfully done using the following code.
Code:
<redirect:write select="$file_name">MONTH,SERVICE ORDER TYPE,SUCCESS RATE %
<xsl:variable name="reconciledStats" select="@month"/>
<xsl:for-each select="$reconciledStats">
<xsl:if test="@StartRawDateAndTime=$month">
<xsl:value-of select="concat(@StartRawDateAndTime,',',@ID, ',',@Total)" />
</xsl:if>
</xsl:for-each>
The problem is that at the top of my csv file, the following header is printed, which I need to remove. How can I remove this header:?
<?xml version="1.0" encoding="UTF-8"?>
many thanks,
Jon