xsl-list
[Top] [All Lists]

Re: [xsl] disappearing line breaks within an element

2009-01-22 11:10:15
cavecatem(_at_)directbox(_dot_)com 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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>