Hello,
I've asked on this busy ML about the procedure to submit a (small)
patch to MetadataService and got no answer so far. I suppose everyone
is as busy as I am. So, I'm taking the liberty to post this message
with the (small) patch attached.
This patch was generated on MetadataService.java from Restlet 2.0M4's
JEE distribution, with "diff -u". It adds out-of-the-box support for
XSL files using the (more common than .xslt) .xsl extension. Please,
consider including this small contribution into the next iteration of
Restlet 2.0, thank you!
--
Fabián Mandelbaum
IS Engineer
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2383339
--- MetadataService.java.old 2009-08-12 08:03:38.000000000 -0300
+++ MetadataService.java 2009-08-12 07:52:56.000000000 -0300
@@ -199,6 +199,7 @@
* <li>xltx: Office Excel 2007 template</li>
* <li>xml: XML document</li>
* <li>xsd: W3C XML Schema document</li>
+ * <li>xsl: XSL Transform file</li>
* <li>xslt: XSL Transform file</li>
* <li>xul: XML User Interface Language file</li>
* <li>z: UNIX compressed archive file</li>
@@ -339,6 +340,7 @@
ext(dm, "xml", MediaType.TEXT_XML);
ext(dm, "xml", MediaType.APPLICATION_XML);
ext(dm, "xsd", MediaType.APPLICATION_W3C_SCHEMA);
+ ext(dm, "xsl", MediaType.APPLICATION_W3C_XSLT);
ext(dm, "xslt", MediaType.APPLICATION_W3C_XSLT);
ext(dm, "xul", MediaType.APPLICATION_XUL);
ext(dm, "z", MediaType.APPLICATION_COMPRESS);