xsl-list
[Top] [All Lists]

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

2003-05-09 00:57:26
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(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
asim
Sent: 09 May 2003 19:10
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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