xsl-list
[Top] [All Lists]

RE: Tomcat serving XSLT confuses Netscape?

2003-05-05 12:12:25

The content-type on the XSL mUST be either text/xml or application/xml.
Check out Mozilla's XSLT page:


http://www.mozilla.org/projects/xslt/


Frequently Asked Questions

1. Why isn't my stylesheet applied?

Make sure the mime type for both source and stylesheet are set to a XML
mimetype,       namely text/xml or application/xml. The XSLT namespace
is http://www.w3.org/1999/XSL/Transform. Mime type handling in Mozilla
is strict, in contrast to IE. Write some cgi, and you'll love it.



.. -----Original Message-----
.. From: Tim Darling [mailto:tdarling(_at_)eng(_dot_)umd(_dot_)edu] 
.. Sent: Monday, May 05, 2003 11:20 AM
.. To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
.. Subject: Re: [xsl] Tomcat serving XSLT confuses Netscape?
.. 
.. 
.. 
.. Thanks for both responses.  Now I have:
.. 
.. http://ecedbdev.eng.umd.edu:8080/ece/facultyAndStaff/1.xml.jsp
.. has content-type: text/xml
.. 
.. and
.. http://ecedbdev.eng.umd.edu:8080/ece/facultyAndStaff/1.xsl
.. has content-type: text/xsl
.. 
.. But Netscape 7.0 still won't display 1.xml.jsp  as HTML.  
.. Why ?  Thanks
.. 
.. 
.. 
.. > Date: Fri, 02 May 2003 10:52:50 -0600
.. > From: Rick Taylor <taylor(_at_)ppdm(_dot_)org>
.. > Subject: Re: [xsl] Tomcat serving XSLT confuses Netscape?
.. >
.. > Tim,
.. >
.. > Notice the Content-Type: text/plain
.. > The page is being served up as text and Netscape is interpreting it
.. > correctly as such.
.. > You might check the mime-mapping in tomcat 'conf\web.xml'? 
.. to make sure
.. > that .xml is mapped as xml.
.. >
.. > rick
.. >
.. > At 12:21 PM 5/2/03 -0400, you wrote:
.. >
.. > >I have 2 indentical XML + XSLT files on 2 different servers.  Both
.. > produce
.. > >a nice HTML doucment with IE.  But only the first one 
.. works in Netscape
.. > >7.02.  The first one is Apache+FrontPage.  The second is Tomcat.
.. > >Why won't the Tomcat page work!?
.. > >
.. > >These are the files  (and the full HTTP responses):
.. > >Has anyone seen this before? Thanks -T
.. 
.. 
.. 
..  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
.. 
.. 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>