This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Data from DB in xsl
- From: Jarno dot Elovirta at nokia dot com
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 28 Aug 2002 15:26:22 +0300
- Subject: RE: [xsl] Data from DB in xsl
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
> i have tried:
>
> <td valign="top" class="paragraph"> <xsl:value-of
> select="description"/></td>
>
> where "paragraph" is a css property containing:
>
> .paragraph {
> white-space: pre;
>
> }
>
> and "description" is the xml value that contains text from
> the DB but still
> doesn't work.
And it doesn't preserve the text formatting? Which browser are you using to view the page? Anyhow, it sound like you just want
sed -e 's/\n\n/<br\/><br\/>/'
done the XSLT way. Write a recursive template, there are quite a few examples in the FAQ and tutorials.
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list