Subject: Generating HTML tags in XSL script
From: Vik Sachdev <VikS@xxxxxxxxxxx>
Date: Fri, 29 Jan 1999 09:56:43 -0800
|
I have an XML file which looks something like this:
<Foo>
This is line 1
This is line 2
</Foo>
I want to convert it to HTML so that at each carriage return in the XML node
text converts to a break tag. Output HTML should look like:
<td>This is line 1 <br/> This is line 2 </td>
I am using the MSXML.dll and XSL and have written a script to detect for the
CR and insert a "<br/>". However the output HTML looks like:
<td>This is line 1 <br/;> This is line 2 </td>
Basciallly the MSXML object recognizes the start and end of a tag and
automatically converts it to the entity reference, so the browser treats
like text.
Has anybody else had similar issues and figured a way to do this?
Thanks in advance for any help.
Vik
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|