summaryrefslogtreecommitdiff
path: root/filters/application/tab-separated-values_filter
blob: bd96c65e3c1658c1c7d6a02f5fd1d19e46c61c24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

tmpfile=`mktemp` || exit 1

nice -n19 ssindex -i "$1" > "$tmpfile"

nice -n19 xsltproc - "$tmpfile" <<EOF
<?xml version="1.0"?>
<xsl:stylesheet 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version="1.0">

  <xsl:output method="text"/>
  <xsl:output omit-xml-declaration="yes"/>

  <xsl:template match="*">
    <xsl:value-of select="."/>
  </xsl:template>

</xsl:stylesheet>
EOF

rm "$tmpfile"