[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Data from DB in xsl

Subject: RE: Data from DB in xsl
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 28 Aug 2002 15:26:22 +0300
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.