[Home] [By Thread] [By Date] [Recent Entries]
At 2006-04-08 12:26 +0530, Mygrp wrote:
havent tried cdata. im using something like this: The XSLT 1.0 document() function will not accept HTML as an input ... only XML, but it looks from your next post that you've solved that issue. At 2006-04-09 09:15 +0530, Mygrp wrote: I tried embedding the html in cdata section, but the result is the html is html is not interpreted and is displayed as text!! Yes, because you are just emitting angle brackets, you aren't emitting markup. This is the use case for disable-output-escaping ... when you have XML wrapping HTML (whether or not the HTML is in a CDATA, however it is in there must be well formed or you wouldn't have XML) you need to have the result serialized as markup, not as text: If your input were: <doc> <![CDATA[<html><body><p>Hello</p></body></html>]]> </doc> You would use: <xsl:value-of select="doc" disable-output-escaping="yes"/> I hope this helps. . . . . . . . . . . Ken
|

Cart



