This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Embedding HTML in XML
- To: xsl-list at mulberrytech dot com
- Subject: Embedding HTML in XML
- From: Madhu Menon <madhu at asiacontent dot com>
- Date: Fri, 04 Aug 2000 18:46:58 +0530
- Reply-To: xsl-list at mulberrytech dot com
I'm trying to embed some HTML markup into my XML source. I used the
following syntax
<page>
We offer the cheapest air fares to Bombay.
<![CDATA[
<img src="global.gif" alt="Go around the world" />
]]>
</page>
Part of my XSL stylesheet is:
<xsl:template match="page">
<apply-templates/>
</xsl:template>
But instead of getting an image in the HTML page, I get the exact CDATA
text written as is to the browser. Is there some way I can embed the HTML
in the XML markup so that it's processed as HTML itself?
I'm using Microsoft's XML parser on the server end.
TIA,
Madhu
--
"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former." - Albert Einstein
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list