[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Generating HTML tags in XSL script

Subject: Re: Generating HTML tags in XSL script
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Fri, 29 Jan 1999 13:43:37 -0500
xsl script reference
Vik,

 MSXML.dll is probably creating a text node in the result tree with the
result of the script. This is what I do with XSL:P also. So when the
result tree is printed or "serialized" the <> are replaced with the
correct entities. I've never used MSXSL so perhaps they have a function
you could use, something like createElement(name).

--Keith


Vik Sachdev wrote:
> 
> 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 &lt;br/;&gt; 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


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.