I looked at multiple examples and gave each on them a try. Not sure what am I missing. The only difference I found from other examples was that I have multiple <Line> nodes under <RecordSet>.
XML:
<?xml version="1.0" encoding="utf-8"?>
<urn:FlatStructure">
  <Recordset>
    <Line> 12345678</Line>
    <Line> abcdefgh</Line>
  </Recordset>
</urn:FlatStructure>
XSLT:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<!-- First Trial  -->
<xsl:variable name="newline"><xsl:text>
</xsl:text></xsl:variable>
<xsl:template match="/urn:FlatStructure/RecordSet">
   <xsl:value-of select="concat(Line,$newline)" />
</xsl:template> 
<!-- Second Trial  -->
<xsl:template match="/urn:FlatStructure">
  <xsl:apply-templates select="RecordSet/Line" />
</xsl:template>
<!-- Third Trial  -->
<xsl:template match="/urn:FlatStructure">
<xsl:value-of select="concat(Line,'
')" />
</xsl:template>
</xsl:stylesheet>
Current text output:
12345678 abcdefgh
Desired text output :
12345678
abcdefgh
What am I missing in the XSLT ? Please let me know how can I correct it.
Thanks
I looked at the following examples (some may be duplicates) but none of them worked for me :
 
     
     
    