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

html inside xml

Subject: html inside xml
From: "henry" <henry@xxxxxxxxxxxxx>
Date: Fri, 12 Oct 2001 14:54:04 +1300
html inside xml
Dear Jeni,

I have a question which stuck me for a while, I use Microsoft.XMLDOM to
generate xml files, and display over the server. The html information for
the product is stored in the SQL server. While I extract the html content
from the database and append to an xml node, the Microsoft.XMLDOM
automatically convert the "<" and ">" tags into "& lt;" and "& gt;" ( I put
a space between & and "lt; gt;" otherwise the browser will display "<" and
">" automatically), which make my xml file looks as this:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl"?>

                         <!---the html data content from the database--->
              <value><FONT COLOR="RED"& gt;& lt;B& gt;ABC& lt;/B& gt;&
lt;/FONT& gt;


The xsl I use is like this:
<?xml version="1.0"?>

<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="report">
                  <xsl:for-each select="row">
                       <xsl:for-each select="column">
                         <td><xsl:copy-of select="value"/></td>

The output I get is not what I really want:

Should any suggestions and advice will be most appreciated.

Many thanks


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

Current Thread


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.
First Name
Last Name
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.