Subject:Pipe delimited file for outout Author:Rick Scofield Date:22 Mar 2006 06:13 PM
I have created a conversion from a fixed/flat file to XML and created a XSL map to a target format...a text file.
My XSL:
xsl:for-each select="root/row">
<row>
<ProdCode>
<xsl:value-of select="style"/>|
</ProdCode>
<AttrCodes>
<xsl:value-of select="color"/>
<xsl:value-of select="dim"/>
<xsl:value-of select="siz"/>
</AttrCodes>
<Note>
<xsl:value-of select="upc"/>
</Note>
</row>
</xsl:for-each>
However, if I place a pipe after the <style> node, then a crlf occurs after <style> then on the next row I get 5 tabs then all the rest of the fields.
How do you place additional text like a pipe or otherwise in the output without triggering a crlf.