I am trying to write a style sheet to generate code taking an XML file as input.
I tried a lot to insert a newline inside an <xsl:text> element by using 
 or 
 and also with
<xsl:variable name='newline'><xsl:text>
</xsl:text></xsl:variable>
but in output all of these things are adding a space character just like  
The part of my code where I want to insert a newline is:
<xsl:variable name="StructType" select="diStructType"/>
<line>
<xsl:text>    </xsl:text>
<xsl:value-of select="replace($StructType, ';', ';
     ')"/>
<xsl:text>;</xsl:text>
</line>
Here $StructType is a string containing ; in between. I am just trying to replace that ; with ;+newline+(4*space).
Please help
Thanks in advance.