xsl-list
[Top] [All Lists]

RE: Adding structure to text nodes

2003-03-19 11:46:52
Hi.

-----Mensagem original-----
De: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] Em nome de 
David Carlisle
Enviada: quarta-feira, 19 de Março de 2003 15:59
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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