<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="text"/>

<!--
 <xsl:template match="*">
 <xsl:copy>
  <xsl:copy-of select="@*"/>
  <xsl:apply-templates/>
 </xsl:copy>
 </xsl:template>

 <xsl:template match="Item">
 <xsl:element name="{@Name}">
  <xsl:value-of select="Value"/> 
 </xsl:element> 
 </xsl:template>-->

<xsl:template match="/">

 <xsl:value-of select="'ShipperID, Pay Item, Purchase Order Number, Seller Invoice ID, Order Number, Received, Quantity, Unit Price, BP Number, CK Number, &#10;'"/>
  
 <xsl:value-of select="concat(/FormData/Form[1]/Form[3]/Form[1]/Item[1]/Value, ' ',
                              /FormData/Form[1]/Form[3]/Form[1]/Item[2]/Value, ',', 
                              /FormData/Form[1]/Form[3]/Form[1]/Item[3]/Value[1], ' ',
                              /FormData/Form[1]/Form[3]/Form[1]/Item[4]/Value[1], ',', 
                              /FormData/Form[1]/Form[3]/Form[1]/Form[1]/Group[1]/Item[1]/Value[1], ' ',
                              /FormData/Form[1]/Form[3]/Form[1]/Form[1]/Group[1]/Item[2]/Value[1], ',', 
                              /FormData/Form[1]/Form[3]/Form[1]/Form[1]/Group[2]/Item[1]/Value[1], ' ',
                              /FormData/Form[1]/Form[3]/Form[1]/Form[1]/Group[2]/Item[2]/Value[1], ',',
                              /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Form[1]/Item[1]/Value[1], ' ', 
                              /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Form[1]/Item[2]/Value[1], ',',
                              /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Form[1]/Form[1]/Group[1]/Item[1]/Value[1], ' ',
                              /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Form[1]/Form[1]/Group[1]/Item[2]/Value[1], ',',
							  /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Item[1]/Value, ',',
							  /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Item[2]/Value, ',',
							  /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Item[3]/Value, ',',
							  /FormData/Form[1]/Form[3]/Form[1]/Form[3]/Form[1]/Item[4]/Value, '&#10;')"/>

</xsl:template>

</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="export&#x2D;1020&#x2D;00.xml" htmlbaseurl="" outputurl="820_from_SS.csv" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="adapter:CSV?820_from_SS_add_Quantity.csv" destSchemaRoot="table" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="export&#x2D;1020&#x2D;00.xml" srcSchemaRoot="FormData" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"><block path="xsl:value&#x2D;of" x="368" y="0"/><block path="xsl:value&#x2D;of[1]" x="408" y="0"/></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->