Search code examples
xsltwordml

Using XSLT and WordML - new line character


I am using XSLT to create a Word Document using WordML. I have most of what I need, except the newline characters which come out of the database as \r\n

I can change these to whatever is required, but I cannot find out what to change them to. What character should I change them to please so newlines appear in the resulting Word document.

Many thanks


Solution

  • See XML - adding new line

    This gives a complete answer to your question. What you do is based on what you need to do ... simply insert a w:br or adding new structure like adding multiple w:p elements.