[xsl] Problem while inserting new lines

Subject: [xsl] Problem while inserting new lines
From: "Seema Kumar" <2kseema@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Jun 2001 10:31:59 +0530

 Hi all !!

 I am facing the following problem while trying to insert newlines in my xml
 I have included the <br / tag within my xml tags to indicate a new line.

 I am handling it in my xsl as follows :

 <xsl:template match="text"
     <xsl:value-of select ="."/
     <xsl:apply-templates /

 <xsl:template match="br"

 The problem is that all the br tags are matched at the end and they appear
 as a cluster at the end of the text para.
 Here is a sample xml portion

 This is a sample . <br/
 For testing

 The output comes as:
 This is sample
 For testing

 Please let me know what the problem is as I am using XSL for the very first

 Thanks in advance

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread