Subject: Re: Whitespace again From: Keith Visco <kvisco@xxxxxxxxx> Date: Fri, 18 Jun 1999 09:54:55 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Whitespace again, Joerg Bauer | Thread | Re: Whitespace again, Joerg Bauer |
Whitespace again, Joerg Bauer | Date | RE: splitting into separate files a, Sebastian Rahtz |
Month |