[DDI-users] Passing line breaks to DDI-XML
Sigbjorn Revheim
Sigbjorn.Revheim@nsd.uib.no
Wed, 21 Aug 2002 12:38:23 +0200
At 12:08 21.08.2002 +0200, you wrote:
>Here one of my questions:
>
>Some database fields (abstract etc.) contain simple formatting
>(paragraphs, linefeeds, bullets). Is there a way to PASS this information
>into XML? How? Actually, all 'white space' is translated to one space.
>
>For big text elements, it would be nice to keep basic formatting like
>paragraphs. Can CR/LF be converted in a way to take them up by an XSL, and
>also by Nesstar (this should rather be addressed to the Nesstar folks.).
You can use CDATA sections to preserve the white space and the lineshifts.
Example:
<![CDATA[Look, the whitespace and the
line shifts have been preserved.]]>
Sigbjoern