Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix xslt mime type

  • Loading branch information...
commit 285c9b4c60e76e41efce9db79f5e32344c54305a 1 parent 2cbf428
@josh josh authored
View
1  lib/linguist/mimes.yml
@@ -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
View
25 test/fixtures/test.xslt
@@ -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
3  test/test_blob.rb
@@ -441,6 +441,9 @@ def test_language
# Arch Linux PKGBUILD
assert_equal Language['Shell'], blob("PKGBUILD").language
+
+ # XML
+ assert_equal Language['XSLT'], blob("test.xslt").language
end
def test_lexer
Please sign in to comment.
Something went wrong with that request. Please try again.