This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Handling linebreaks
- To: <xsl-list at mulberrytech dot com>
- Subject: Handling linebreaks
- From: "Jerry Luna" <jerry at eredyne dot com>
- Date: Wed, 29 Nov 2000 17:30:26 -0500
- Reply-To: xsl-list at mulberrytech dot com
Currently I have an XML file with an element similar to the following:
<CONTENT>text text text text
text text text text
text text text text
text text
</CONTENT>
What is the best way to preserve the linespacing when I transform this XML
file to HTML?
a) Should I insert tags to associate with the linebreaks when building the
XML content? If I do this, how would I know when I run into those tags when
I use <xsl:value-of select="CONTENT">?
b) Or should I sent ascii characters (such as   for whitespace) and if
so, how do I do it???
c) Some other option??
Jerry
jerry@eredyne.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list