[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Problem while inserting new lines

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

 Hi all !!

 I am facing the following problem while trying to insert newlines in my xml
 data.
 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

 <xsl:template match="br"
  <br/
 </xsl:template

 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

 <xml
 <text
 This is a sample . <br/
 For testing
 </text

 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
 time.

 Thanks in advance
 Seema




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.