[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: disappearing line breaks within an element
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 22 Jan 2009 17:09:45 +0100
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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member