[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Adding structure to text nodes
Subject: RE: [xsl] Adding structure to text nodes
From: Américo Albuquerque <aalbuquerque@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Mar 2003 18:46:52 -0000
|
Hi.
> -----Mensagem original-----
> De: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] Em nome de
> David Carlisle
> Enviada: quarta-feira, 19 de Março de 2003 15:59
> Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Assunto: Re: [xsl] Adding structure to text nodes
>
>
>
> > So the content must be altered, but in a structured way.
>
> I don't think you have given any indication of what changes
> that you want to make. One possible algorithm toi get from
>
> blabla
> blabla
> blabla
>
> to
>
>
> blabla
> blabla
> blabla
>
>
> is
> <xsl:value-of select="translate(long,' ','')"/>
> which removes all spaces but leaves line breaks.
Yes, but that also will change 'bla bla bla' into 'blablabla'
<xsl:value-of select="normalize-space(long)"/> might work as intended
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|