[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: include html in xsl
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|