This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Data from DB in xsl
- From: "KIENLE, STEVEN C [IT/0200]" <steven dot c dot kienle at pharmacia dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 28 Aug 2002 08:25:06 -0400
- Subject: RE: [xsl] Data from DB in xsl
- Reply-to: xsl-list at lists dot mulberrytech dot com
I think what Jarno was suggesting is the following:
<td valign="top"><pre><xsl:value-of select="description"/></pre></td>
Try that and see if that does what you want. If it doesn't, would you post
the resulting HTML code so we have a chance to see what is going wrong?
Thank you,
Steve
-----Original Message-----
From: Stevenson Ngila [mailto:Stevenson@epr.footman-walker.com]
Sent: Wednesday, August 28, 2002 8:13 AM
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Data from DB in xsl
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.
Any more ideas please??
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
Jarno.Elovirta@nokia.com
Sent: 28 August 2002 13:19
To: xsl-list@lists.mulberrytech.com
Subject: RE: [xsl] Data from DB in xsl
Hi,
> I have an intranet which user add data ot it using form, and
> it's saved in
> the SQL 2000 DB. If the user put a paragraph in this form and
> saves it in
> the DB, how can this data be displayed using xml/xslt so that
> it appears
> exactly th way the user input it i.e. with paragraphs?
Add
white-space: pre;
CSS property to the element that contains the text.
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list