Fix xslt mime type

This commit is contained in:
Joshua Peek
2012-05-09 10:59:00 -05:00
parent 2cbf428176
commit 285c9b4c60
3 changed files with 29 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ application/x-supercollider @sc :8bit
application/x-troff-ms :8bit
application/x-wais-source :8bit
application/xaml+xml @xaml :8bit
application/xslt+xml @xslt :8bit
image/x-icns @icns
text/cache-manifest @manifest
text/plain @cu,cxx

25
test/fixtures/test.xslt vendored Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<xsl:for-each select="catalog/cd">
<tr>
<td><xsl:value-of select="title"/></td>
<td><xsl:value-of select="artist"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@@ -441,6 +441,9 @@ class TestBlob < Test::Unit::TestCase
# Arch Linux PKGBUILD
assert_equal Language['Shell'], blob("PKGBUILD").language
# XML
assert_equal Language['XSLT'], blob("test.xslt").language
end
def test_lexer