Hi Johannes Thanks a lot for your support and the script. In the mean time I have found an additional/alternative solution based on CSS: --- <div style="white-space:pre;"> ... </div> --- At the moment I'm still not able to judge which is the *most elegant* way to solve problems of formatting strings-parts within a string (<br> is just one formatting aspect in a multiline field). In the mean time again I have also realized that it makes a big difference in processing text-nodes with <xsl:value-of/> or <xsl:apply-templates/>. The last approach combined with identity transformation enables one to include some basic formatting tags (as list, bold, italic and so on) within a string.
Thanks again ... Raffaele > -----Urspr�ngliche Nachricht----- > Von: Johannes Textor [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 9. Dezember 2004 09:22 > An: [EMAIL PROTECTED] > Betreff: Re: newlines to <br> > > > Hi Merico, > > I have attached a stylesheet that I use for doing this. > Works for me with xalan, hopefully also with saxon. > > HTH, Johannes > > Merico Raffaele wrote: > > >Dear Community > > > >I'm looking for a way to translate the newlines in a text > into HTML-<BR> > >when serializing to HTML. > >Can anybody give me a tip. I'm using cocoon.2.1.6 and saxonb.8.1.1. > > > >Many thanks in advance ... Raffaele > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
