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

Converting linebreaks

Subject: Converting linebreaks
From: "Joel P Thornton" <joelt@xxxxxxxxxxxxx>
Date: Wed, 2 May 2001 14:48:53 -0700
converting linebreaks
I have this xml:

================
<text>This is line 1.
This is <B>line 2</B>.
This is line 3.</text>
================


Does XSLT provide a way that I can transform it into this?:

================
<text>
  This is line 1.
  <BR/>
  This is <B>line 2</B>.
  <BR/>
  This is line 3.
</text>
================


I'm piecing together an XML-based content management tool and it would be
most convenient for content editors to just hit enter when they want a line
break to occur, giving them a sort of cross-breed of plaintext and HTML.
Hopefully this could also be adapted to a scenario where each
linefeed-separated block of text is turned into <para>block of text</para>
or similar..

Ideas?
joel


 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.