![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Howto embed html in xml doc? Cdata? disable-output-escaping? Howto embed html in xml doc? Cdata? disable-output-escaping?To: NULL Date: 8/9/2006 5:22:00 PM
How does one embed html in the xml doc and have it render as html? The tags
are being rendered as text (ie tags are escaped) - see output below. Any
help would be very appreciated!!!
ex xml file:
<?xml version="1.0" encoding="UTF8" ?>
<test>
<![CDATA[<b>test</b> <u>test</u>]]>
</test>
ex xslt:
<?xml version="1.0" encoding="US-ASCII" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="html" omit-xml-declaration="no" indent="yes" />
<xsl:template match="test">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<xsl:value-of select="." disable-output-escaping="yes" />
</head>
</html>
</xsl:template>
</xsl:stylesheet>
output:
<b>test</b> <u>test</u>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
