• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

xml / xsl not accessible on netscape & mozilla

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which server you're using to serve the XSL file? Does it have *.xsl mapped to the "text/xsl" MIME type?
 
Priyadarshini Anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why can't you configure the MIME type mapping for your server?
 
Priyadarshini Anand
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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:
 
reply
    Bookmark Topic Watch Topic
  • New Topic