![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - [HELP] How to preserve whitespace from souce XML to HTML? >Thread Next - Re: [HELP] How to preserve whitespace from souce XML to HTML? Re: [HELP] How to preserve whitespace from souce XML to HTML?To: NULL Date: 7/6/2004 12:09:00 PM Erming Pei wrote: > I'd like to output the following line from XML document to HTML: > > <detail_data>Missing DNs: > ============================================== > "dn: GlueCEUniqueID=" > "dn: GlueSEUniqueID=" > "dn: GlueCESEBindSEUniqueID=" > "dn: GlueSARoot="</detail_data> > > But it turn out to be this: > Missing DNs: ============================================== "dn: > GlueCEUniqueID=" "dn: GlueSEUniqueID=" "dn: GlueCESEBindSEUniqueID=" "dn: > GlueSARoot=" > > the white spaces are all getting away! If you're familiar with HTML you should be aware that in HTML newline is treated as whitespace and adjacent whitespace characters are displayed as a single space. To display preformatted text you can use <pre> tag. -- Oleg Tkachenko [XML MVP] http://blog.tkachenko.com | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
