[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: "Noel Golding" <noel@xxxxxxxxxxxxxxx>
Date: Wed, 28 Aug 2002 10:01:33 -0400
xsl replace n

If you want the HTML to automatically wrap, and you want to maintain the
paragraph breaks,  you will probably need to do a replace function. see the
link below.  More than likely if you replace \n with <br><br> this should
give you the desired result.

http://www.exslt.org/regexp/functions/replace/


Noel

----- Original Message -----
From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, August 28, 2002 9:40 AM
Subject: RE:  Data from DB in xsl


> yes but it disfigures my page by increasing the width because the text
> doesn't wrap.
>
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Noel Golding
> Sent: 28 August 2002 15:38
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Data from DB in xsl
>
>
> have you tried
>
> <td valign="top" class="paragraph">
>     <pre><xsl:value-of select="description"/></pre>
> </td>
>
>
> ----- Original Message -----
> From: "Stevenson Ngila" <Stevenson@xxxxxxxxxxxxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Wednesday, August 28, 2002 8:13 AM
> Subject: RE:  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@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of
> > Jarno.Elovirta@xxxxxxxxx
> > Sent: 28 August 2002 13:19
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Subject: RE:  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
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.