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

Re: Whitespace again

Subject: Re: Whitespace again
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Fri, 18 Jun 1999 09:54:55 -0400
html no linebreak example
Joerg,

add the following to your top level children of your xsl:stylesheet
element:

<xsl:preserve-space element="text"/>

--Keith

Joerg Bauer wrote:
> 
> Maybe i am stupid but i can´t do it !!
> 
> I have a xml documnet:
> 
> <text>line 1
> line 2
> </text>
> 
> ( There is linebreak in the text() - Element !!!! )
> 
> and a xsl document:
> 
> <xsl:template match="text">
>         <textarea id="input" name="mytext" rows="5" cols="30" wrap="physical">
>                 <xsl:value-of select="text()"/>
>         <textarea>
> </xsl:template>
> My problem is that in the html output there is no linebreak. Reading the
> Working-Draft (WD-xsl-1998-1216, i use xsl:p), i found out that there is
> something like xsl:preserve-space etc. but i don´t understand how to use
> it.
> 
> Could anybody give me an example / solution..... ?
> 
> --
> Blue Mars Interactive           http://www.bluemars.de
> Joerg Bauer                     mailto: jb@xxxxxxxxxxx
> Lersnerstrasse 23               Tel. +49 (0)69 959 42-400
> 60322 Frankfurt/M.              Fax  +49 (0)69 959 42-420
> 
>  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.