RE: [xsl] how to display html data, coming in a node

Subject: RE: [xsl] how to display html data, coming in a node
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 9 May 2003 08:57:26 +0100
So long as you only need this to display on browsers that support the
optional disable-output-escaping feature (IE does, Netscape doesn't) you
can display the HTML using disable-output-escaping="yes".

This isn't an ideal solution, because it only works in certain
environments (where the transformation is producing text output that is
then being re-parsed by the receiving application), but it's a pragmatic
approach. Better is to change the source document so that instead of
containing HTML within CDATA, it contains directly-nested XHTML.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of asim
> Sent: 09 May 2003 19:10
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] how to display html data, coming in a node 
> 
> 
> HI All
>   i m have a small problem
> let say i m making this xml packet
> 
> <data>
>     <file-content><![CDATA[ All the not well formed Html 
> readed from an html file ]]></file-content> </data>
> 
> and in my xsl i nm trying to output the html like this 
> <xsl:value-of select="//file-content"/>
> 
> but this outputs the hole HTML as a string on the browser 
> window , and the tags r visible there Is it possible to 
> output HTML contents not the tags ???
> 
> Plz HElp
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread