GeeCON Prague 2014*
The moose likes XML and Related Technologies and the fly likes xml / xsl not accessible on netscape & mozilla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml / xsl not accessible on netscape & mozilla" Watch "xml / xsl not accessible on netscape & mozilla" New topic
Author

xml / xsl not accessible on netscape & mozilla

Priyadarshini Anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
Hi all,

I wrote a xsl file and put it on server. Now xml files are displayed in html format using the xsl file. The problem is, files are displayed on Internet explorer but not displayed on mozilla and netscape.
the error shown is :

Error loading stylesheet: (null)http://......./demo1/directoryInfo.xsl

Where am I going wrong ? What changes i should do in xml or xsl file ?
we are including style sheet in xml files in this way :

In style sheet the output is html files as follows :

pl help me.

Priya

[ July 30, 2004: Message edited by: Priyadarshini Anand ]
[ July 30, 2004: Message edited by: Priyadarshini Anand ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Which server you're using to serve the XSL file? Does it have *.xsl mapped to the "text/xsl" MIME type?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Priyadarshini Anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
I have to use the same server and i have to run the xml and xsl files. Server is not supporting the text/xsl type.I can not view the files on mozilla and netscape. Now what i should change in my xml/ xsl file.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Priyadarshini Anand:
Server is not supporting the text/xsl type.I can not view the files on mozilla and netscape. Now what i should change in my xml/ xsl file.

If I remember correctly, Mozilla and Netscape will not process your stylesheets correctly unless you add the MIME type mapping for "text/xsl" into your server (that is, I don't think there's anything you can do in your XML/XSL file to fix this).
Priyadarshini Anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
It is really very sad for me to know that my project will not work on netscape and mozilla.If anyone can help me to solve the issue any how, it will be really great for me.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Why can't you configure the MIME type mapping for your server?
Priyadarshini Anand
Greenhorn

Joined: Jun 02, 2004
Posts: 22
What i need to do to configure MIME type on my server ? I am new ti these things. Please dont be irritated if i am asking any silly question ?

-- Priya
[ July 30, 2004: Message edited by: Priyadarshini Anand ]
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Priyadarshini Anand:
What i need to do to configure MIME type on my server ?

That depends on which server you're using? If it happens to be Apache HTTPD, for example, then you need to add a line into a file called mime.types as follows:
 
GeeCON Prague 2014
 
subject: xml / xsl not accessible on netscape & mozilla