File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes Rendering XML To HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "Rendering XML To HTML" Watch "Rendering XML To HTML" New topic
Author

Rendering XML To HTML

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I have a XML file and I am going to write a XSLT; say, xxx.xsl, to render the XML file. To my undertanding, if I add a line of reference to the xxx.xsl in the XML document like this:
<?xml-stylesheet type="text/xsl" href="xxx.xsl"?>
when I double click on the xxx.xsl file icon, the browser will transform the XML document into HTML, and I will see the HTML output.
But the XML file I have does not have a line of reference to any XSL file, and it is not in my control to add a line of reference to the xxx.xsl in the XML file. Do we prepare the following code:

Should we save the above code as a .html file and click on the file icon to see the HTML output of the XML document?
[ December 13, 2002: Message edited by: JiaPei Jen ]
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Let me answer my own question. The answer is "YES". This is the way to do it. I have tested it out. It works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rendering XML To HTML