[xsl] making <p>s or <br> in html from a stylesheet

Subject: [xsl] making <p>s or <br> in html from a stylesheet
From: Brook Ellingwood <brook@xxxxxxxxxxx>
Date: Mon, 01 Sep 2003 11:09:35 -0700
> I have some xml which has line feed, carriage returns, whatever, on each
> line, and I want to transform this into html and I want to keep these little
> buggers or make something that breaks a line in html. So what should i do ?!

[Back on digest mode, so this may have already been answered...]

I've just been doing the same thing with some added complexity thrown in.
The second question on this FAQ page is the starting point you need -- it
sounds like it should solve all your issues:


What I needed was to do this but also have child elements in the text being
delimited by (in my case) DIV tags. The solution in the FAQ won't work in
that case. If you find you need to do something more along those lines,
David Carlisle's solution works very well:


-- Brook

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread