[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML MIME types: server vs. client support?

  • To: xml-dev@l...
  • Subject: XML MIME types: server vs. client support?
  • From: Ken Sall <kensall@c...>
  • Date: Fri, 05 Jul 2002 15:01:41 -0400

xml mime type
I have an XML document, participants.xml, that references a DTD and an XSLT
1.0 stylesheet with the following XML prolog and PI:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Participants SYSTEM "participants.dtd">
<?xml-stylesheet type="text/xsl" href="participantNameSort.xsl"?>

On my own PC, using NS 6.2.3 and IE 6 clients, I get the expected result of
applying the stylesheet to the XML data and delivering HTML to either
browser. However, when I uploaded the files to my Web host's server (running
Netscape-Enterprise/4.1, according to http://www.netcraft.com/), things are
fine with IE 6, *but* with NS 6.2.3 (and Mozilla 1.0), I get the raw
angle-bracketted XML in participants.xml (not the content of XML elements
and not the result of applying the stylesheet).

For comparsion, I uploaded the files to another server,  running
Apache/1.3.12 (Unix) PHP/4.0.4pl1 on Linux. Again, IE 6 was fine, but NS
6.2.3 displayed the *element contents* of participants.xml, just as if the
stylesheet wasn't processed.

Is this a server MIME type problem? Do I need to petition my Web host
(rotsa-ruck ;-) to configure a set of XML MIME types? If so, what's the
appropriate set to ask them to support? Or is this an NS/Mozilla client bug?

According to RFC 3023, http://www.ietf.org/rfc/rfc3023.txt, the first 5 XML
MIME types below are proposed. Two others that I will need follow.

(1) text/xml
(2) application/xml
(3) text/xml-external-parsed-entity
(4) application/xml- external-parsed-entity
(5) application/xml-dtd
(6) application/xslt+xml
(7) image/svg+xml

Do I need to change type="text/xsl" in the stylesheet PI above?

Is there a central place where *all* XML MIME types are listed, especially
indicating their current status and whether they are supported by particular
Web servers and browsers?

Isn't there some telnet/http GET command that I can send to my server to
find out all MIME types they support?

Thanks very much.

- Ken Sall              kensall@c... or ken@s...
- XML Specialist        http://mywebpages.comcast.net/kensall/
- XML Family of Specifications: A Practical Guide (just published)
- http://WDVL.Internet.com/Authoring/Languages/XML/XMLFamily/






PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.