Transforming text to paragraphs
Recently, in a customer project, I came upon a situation where I would get a bulk of text delivered from the database through XML. Naturally, the customer wanted the text to be presented in neat paragraphs and the only way to differentiate one paragraph from another in the source text was line breaks.
I then created a JavaScript in the XSLT file to wrap every text entity separated by line breaks within p tags.
My solution can be found in RobLab’s Text to paragraphs article.






