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
|