r61419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61418‎ | r61419 | r61420 >
Date:15:27, 23 January 2010
Author:btongminh
Status:ok
Tags:
Comment:
(bug 19528) Revert 55749: "according to the XSLT 1.0 spec, the MIME type should be text/xml or application/xml. In XSLT 2.0, it is application/xslt+xml. Either way, text/xsl is wrong." The mime type text/xsl is the only one supported by all modern browsers.
Modified paths:
  • /trunk/phase3/includes/api/ApiFormatXml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiFormatXml.php
@@ -173,7 +173,7 @@
174174 $this->setWarning( 'Stylesheet should have .xsl extension.' );
175175 return;
176176 }
177 - $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xml" ?>' );
 177+ $this->printText( '<?xml-stylesheet href="' . $nt->escapeLocalURL( 'action=raw' ) . '" type="text/xsl" ?>' );
178178 }
179179
180180 public function getAllowedParams() {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r53194(bug 19528) Added XSLT parameter to API queries in format=xmlbtongminh21:37, 13 July 2009

Status & tagging log