![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Howto embed html in xml doc? Cdata? disable-output-escaping? [Thread Next] Re: Howto embed html in xml doc? Cdata? disable-output-escaping?To: NULL Date: 8/10/2006 2:47:00 PM "Marianne" <bogus@n...> wrote in message news:ODKHtqAvGHA.4888@T...... > 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!!! Works fine for me. What tools are you using. I added <?xml-stylesheet type="text/xsl" href="test.xsl" ?> To the xml file and opened it in Internet Explorer. Displayed as expected Bold then underlined test. The xmlns on the html tag is a liitle odd though why is that there? > > 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 | |||||
|
