Req #67079 [Opn]: Missing MIME types for XML/XSL files

From: Date: Tue, 15 Apr 2014 13:30:23 +0000
Subject: Req #67079 [Opn]: Missing MIME types for XML/XSL files
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185257@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67079&edit=1 ID: 67079 User updated by: dde at innovaphone dot com Reported by: dde at innovaphone dot com Summary: Missing MIME types for XML/XSL files Status: Open Type: Feature/Change Request Package: Built-in web server Operating System: Windows 7 x64 PHP Version: 5.5.11 Block user comment: N Private report: N New Comment: "text/xml" would be fine too! Greetings, Daniel Previous Comments: ------------------------------------------------------------------------ [2014-04-15 13:20:40] dde at innovaphone dot com Ok, sample XML file test.xml: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="test.xsl"?> <info lang="de,en"> </info> Sample XSL file test.xsl: <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output encoding='utf-8' method='html' standalone='yes' doctype-system="about:legacy-compat"/> <xsl:template match="info"> <div>Test</div> </xsl:template> </xsl:stylesheet> Greetings, Daniel ------------------------------------------------------------------------ [2014-04-15 13:10:07] ab@php.net Could you please post short file snippets you have erroneous behaviour with? thanks ------------------------------------------------------------------------ [2014-04-15 11:22:34] dde at innovaphone dot com Description: ------------ I'm currently developing a website with XML and XSL files where XSLT is done. First an XML file is served which contains a reference to an XSL file and the browser does the transformation. Sadly this doesn't work (at least with Firefox/Chrome) if the web server doesn't set a correct Content-Type header. So I vote for two new lines inside the mime_type_map in php_cli_server.c: { "xml", "application/xml" }, { "xsl", "application/xml" }, A router script with custom mime types is no option as the debugging gets extremely slow (Visual Studio 2013 with plugin PHP tools and xdebug). Greetings, Daniel ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67079&edit=1

« previous php.bugs (#185257) next »