Subject:Replacing carriage returns and line breaks in XML with elements Author:Phil Parker Date:24 Mar 2005 05:56 PM
From an authoring system, users are creating line breaks and carriage returns
within content that is then enclosed within in a single element upon export to
and XML file.
What is the best approach using XSLT, going from XML to XML, once the
line breaks and carriage returns are in the XML file to convert those
to elements.
For example:
<root>
<para>Here is beginning content
line break
Here is ending content
</para>
</root>
change to
<root>
<para>Here is beginning content</para>
<para>Here is ending content</para>
</root>