User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 373,483 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,918 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:
Views: 1544 | Replies: 2 | Solved
Reply
Join Date: Mar 2007
Location: RI
Posts: 146
Reputation: Dsiembab is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

problem with firefox no problem with ie7

  #1  
Jul 9th, 2007
I have a xsl file that is saved as whatever.php. the style sheet is called by <?xml-stylesheet type="text/xsl" href="whatever.php"?>
I get an error on firefox that it does not have the correct mime type.
I save the xsl file under php because I need to use php in the code to execute certain functions. What is the correct mime type for firefox?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2007
Posts: 21
Reputation: dezignwork is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 2
dezignwork's Avatar
dezignwork dezignwork is offline Offline
Newbie Poster

Re: problem with firefox no problem with ie7

  #2  
Jul 15th, 2007
Here are a few 'possible' solutions. I haven't tested them, but they should work in my opinion.

1) Set the headers for PHP file to xml. Most browsers don't parse XML files if they have unknown extensions.

header('Content-Type: text/xml');
header('Content-Disposition: inline; filename=sample.xml');

2) Try using mod rewrite so that you call whatever.xml instead of whatever.php
hosting :: development :: design
dezignwork.com
Reply With Quote  
Join Date: Mar 2007
Location: RI
Posts: 146
Reputation: Dsiembab is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 1
Dsiembab's Avatar
Dsiembab Dsiembab is offline Offline
Junior Poster

Re: problem with firefox no problem with ie7

  #3  
Jul 16th, 2007
I'll have to try that, I actually just ended up parsing it with javascript so I could make it into an ajax app. thanks
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb RSS, Web Services and SOAP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the RSS, Web Services and SOAP Forum

All times are GMT -4. The time now is 5:44 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC