Re: how to display html data, coming in a node
HI <tr> <td> <xsl:variable name="test"><xsl:value-of select="//file-content" /></xsl:variable> <xsl:value-of select="$test" disable-output-escaping="yes"/> </td> </tr> its working fine after doing this . actually i m using serverside transformation using MsXML Parser, What u suggest will it will give me problems in future ??, Thankx for Answering , ----- Original Message ----- From: "Michael Kay" <mhk@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, May 09, 2003 12:57 AM Subject: RE: how to display html data, coming in a node > 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: 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 > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
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