This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Data from DB in xsl


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]