Hi, When I manually convert the xml file with the xsl in visual studio or xml notepad, the breakline can be correctly shown. But if I open the xml file directly in IE, all the text will be in one line. How can I get what I want? (The result should be txt, not HTML format.) Thanks, Kert.
Kert wrote: > When I manually convert the xml file with the xsl in visual studio or xml > notepad, the breakline can be correctly shown. But if I open the xml file > directly in IE, all the text will be in one line. How can I get what I want? > (The result should be txt, not HTML format.) I think the problem is that IE always treats the transformation result as HTML and renders it as such so putting in does not create a line break. You might be better off to create a HTML document with a list or with br elements to ensure you get the output you want. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/
Thank you. "Martin Honnen" wrote in message news:eGQHAww8IHA.3944@TK2MSFTNGP03.phx.gbl... > Kert wrote: > >> When I manually convert the xml file with the xsl in visual studio or xml >> notepad, the breakline can be correctly shown. But if I open the xml file >> directly in IE, all the text will be in one line. How can I get what I >> want? (The result should be txt, not HTML format.) > > I think the problem is that IE always treats the transformation result as > HTML and renders it as such so putting in does not create a line > break. You might be better off to create a HTML document with a list or > with br elements to ensure you get the output you want. > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/