Re: [xsl] why no indent here

Subject: Re: [xsl] why no indent here
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 12 Dec 2011 09:15:56 +0000
>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

Current Thread