This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
jQuery in Action, 2nd edition
 
subject: Rendering XML To HTML
 
Similar Threads
What Could Go Wrong?
How to convert XML file to an HTML file using XSLT
Use different XSL files on the same XML doc
Representing an xml
Parsing XML in Javascript