xsl-list
[Top] [All Lists]

Re: [xsl] why no indent here

2011-12-12 03:16:05
>So I can't preserve the linebreaks in the xml file into the html file ?

If you do "view source" you'll see that the line breaks are indeed present in your HTML. The problem is that line breaks in HTML aren't displayed as line breaks by the browser. To get a line break in the browser output, you need a <br> element in the HTML.

The question "how do I convert linebreaks into <br> elements" is FAQ and you should be able to find an answer by googling.

Michael Kay
Saxonica

--~------------------------------------------------------------------
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>