Lists Home |
Date Index |
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.
(4) application/xml- external-parsed-entity
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 firstname.lastname@example.org or email@example.com
- XML Specialist http://mywebpages.comcast.net/kensall/
- XML Family of Specifications: A Practical Guide (just published)