You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Würfel Wolfgang <wo...@infonova.com> on 2002/07/19 10:53:48 UTC

Converting newlines to elements

Hi,

I have a xslt question:
Is it possible to write an xslt-stylesheet that converts newlines in element content to an element, say <br> ?
e.g.:
input:
<element>text
next line
third line ...
</element>

desired output:
<element>text<br/>next line<br/>third line...<br/><element>

I know that there are some string-functions in XPath that could be used to do this, but I haven't yet figured out if it can be achieved.
Any pointers appreciated

-- 

DI Wolfgang Würfel
E-Security 

INFONOVA GmbH
Seering 6
A-8141 Unterpremstätten bei Graz

Tel.: +43 316 8003 2315
Fax: +43 316 8003 2380

E-Mail: wolfgang.wuerfel@infonova.com
Web: infonova.com