•
•
•
•
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
![]() |
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?
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?
current personal projects The H8ers Club && PCLinuxOS non-official One stop forum
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
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
dezignwork.com
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
current personal projects The H8ers Club && PCLinuxOS non-official One stop forum
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
api asp beta blogger blogging bon browser code development dom echo email encryption europe explorer feed firefox gdata google graphics html ie7 internet internet explorer internet explorer 7 javascript linux lonelygirl15 microsoft mozilla news open source open-source programming reader rss security software standards super testing users video w3c weather web webmail xml xoap youtube
- LCD screen problem or graphics card problem? (Monitors, Displays and Video Cards)
- Yahoo Mail Send Problem using Mozilla FireFox verision 0.8 (Web Browsers)
- Firefox Problem with buttons (Web Browsers)
- Firefox problem - can't install update and Thunderbird -"fights" with Netscape! (Windows NT / 2000 / XP / 2003)
- Problem accessing various site (Viruses, Spyware and other Nasties)
- Ugh. Firefox and IE problem (Web Browsers)
- friends problem, HJT log (Viruses, Spyware and other Nasties)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: posting data from a form to msg broker fail
- Next Thread: I made an application with new soap and ajax


Linear Mode