noor.rahman wrote:
I have an XML file that stores data from an HTML form. I use XSL to
display the data in HTML format. The data may have newline characters.
However, XSL is not displaying the newlines properly in the browser.
I even replaced all the newlines with <BR/> tags but eventhough I see
the tags in my source, I don't get a line break in the output document.
Any help would be greatly appreciated.
If you open the XML in a text editor, the raw text of the <br/> looks like
<br/> , right?
Remember that HTML payload in XML is just that - payload. XML will not see
the well-formed XML tag <br/>, and think "ahah, that's HTML, so copy it out
raw". It will see a valid XML tag, and won't emit it in the 'text' property
of the current node.
Also, depending on the actual XSL plumbing, you might need this attrocity:
&lt;br/&gt;
I'm not smart enough to understand if that's a bug or a feature...
--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!