This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes Rendering HTML content of the xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Rendering HTML content of the xml file" Watch "Rendering HTML content of the xml file" New topic
Author

Rendering HTML content of the xml file

Hari Ranch
Greenhorn

Joined: Jun 22, 2003
Posts: 2
Hi
I have a xml file with the HTML content( as CDATA). When I transform this
xml file as a HTML file using XSLT, the HTML content of the xml file is
displayed as it is in the HTML output of the XSLT. But actually I want to
render this HTML content within the resulting HTML output of the XSLT.
Any ideas and suggestions are welcome!!
Regards,
Hari
Hari Ranch
Greenhorn

Joined: Jun 22, 2003
Posts: 2
ok no problem, Meanwhile I found the solution...
The solution is.. in xsl we have to set a property called "disable-output-escaping" to value "yes". ie like
<xsl:value-of disable-output-escaping="yes" select="TEXT_DESCRIPTION"/>
By this way, we can render the HTML content which is in the xml file as CDATA.
Hari
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rendering HTML content of the xml file
 
Similar Threads
Installing XSLT processor
xsl variables to core set
using .xml and .xsl file in Servlets/jsp files to generate .html content (to browser)
transform xml -> xml with xsl(t)
HTML to XSLT and vice versa generation