Re: Whitespace again

Subject: Re: Whitespace again
From: Joerg Bauer <jb@xxxxxxxxxxx>
Date: Tue, 29 Jun 1999 11:26:13 +0200
Thank you for you answer,
but it still doesn´t work.

I doing this in the Cocoon Framework (1.4). Is it possible that the
CocoonPrinter strips the Whitespace ?? If yes, i read something about
xml:space="preserve" but i don´t understand where and how to use it.

could you help me ??

Keith Visco wrote:
> 
> 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

--
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


Current Thread