|
Viewing XML using Default Browser - Java's "Desktop" API
I am using Java's "Desktop" API to open the default browser to view an XML file. The file has an associated "XSL" so with some browsers, IE and Firefox, it would be rendered with HTML formatting. This works in Windows 2000 and up until recently it worked in Linux on KDE 3.x. Now however it only opens up Konqueror browser, which does not render the "XML/XSL". I have gone into the "KDE Configure", "Component Chooser", "Web Browser" changed the "Default Component" to Firefox (mozillafirefox). "File Associations", "text", "html" and "xml" putting Firefox at the top of the list, still Konqueror browser displays the XML file, not Firefox. If the KDE user clicks on the XML file in the Konqueror File Manager the default browser is Firefox and the XML/XSL is rendered and displayed.
KDE version: 3.5.8 "release 22.3"
Release: 2.6.18.8-0.1-default
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.18.8-0.1-default running on i386; UTF-8; en_US (nb)
Tested using the code from the following example (add the link protocol):
xxxxx://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/desktop_api/]Using the Desktop API in Java SE 6
Results:
Windows 2000 - works opening using default browser IE
Linux/KDE - does NOT work Opens the XML using Konqueror (default is Firefox) and without the rendering ?
Is there some other "Desktop" setting that needs to be configured ?
I have a sample XML and XSL file I used to test with the code above - this site will not allow links to be entered.
----------------------------------------------
simple.xml
----------------------------------------------
----------------------------------------------
simple2a.xsl
----------------------------------------------
|