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

Re: disappearing line breaks within an element

Subject: Re: disappearing line breaks within an element
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 22 Jan 2009 17:09:45 +0100
Re:  disappearing line breaks within an element
cavecatem@xxxxxxxxxxxxx wrote:

When I transform the XML to HTML, they just dissappear.

Do you look at the transformation result in a text editor or in a browser? Because a browser will not render any line breaks as such, rather it collapses any white space to a space (http://www.w3.org/TR/html4/struct/text.html#h-9.1). So unless you use the HTML 'pre' element the browser will not render line breaks in element content.


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

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-2011 All Rights Reserved.