Topic: Displaying characters in multiple lines in browser using java dom+xml+xsl+html (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 02-15-2009 09:31
Hi i am using xml and xsl to display characters in multiple lines |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-15-2009 10:04
Well, either wrap them in a <pre>, or have the xsl transform the \n to a <br>... |
Obsessive-Compulsive (I) Inmate From: |
posted 02-15-2009 11:17
Thanks for your reply Prime. If i was trying to replace \n with <br> in the java code which generates xml content for xsl then browser is displaying <br> as it is with textcontent. Prime could you please give me an example. |
Obsessive-Compulsive (I) Inmate From: |
posted 02-15-2009 16:02
please help me in this |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-15-2009 19:14
hello nimall, code: for (String line: text.split("\n") { doc.createTextNode(line); doc.createNode("<br>"); }
|