revised patch.  Forgot to update filters/application/Makefile.am

On 11/11/06, Edward Duffy <[EMAIL PROTECTED]> wrote:
On 11/10/06, Jamie McCracken <[EMAIL PROTECTED]> wrote:
>   M (can someone create a filter for this please - it might be possible
> on the command line with abiword) AbiWord15 (abw)

The command line options only allow for creating files where the
original file is located (no pipes, no named locations, as far as I
can tell).
 Here's a filter that uses xsltproc..this would've been easier if
there was an xmlless.

Does xsltproc come standard on most distros?



--- /dev/null	2006-10-18 06:41:50.000000000 -0400
+++ filters/application/x-abiword	2006-11-11 18:39:03.000000000 -0500
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+xsltproc - $1 <<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
+
Index: filters/application/Makefile.am
===================================================================
RCS file: /cvs/gnome/tracker/filters/application/Makefile.am,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile.am
--- filters/application/Makefile.am	21 Aug 2006 20:18:25 -0000	1.2
+++ filters/application/Makefile.am	11 Nov 2006 23:54:52 -0000
@@ -8,6 +8,7 @@ thumbappbin_SCRIPTS = 	pdf_filter \
 			vnd.stardivision.writer_filter \
 			vnd.sun.xml.calc_filter \
 			vnd.sun.xml.impress_filter \
-			vnd.sun.xml.writer_filter
+			vnd.sun.xml.writer_filter \
+			x-abiword
 
 EXTRA_DIST = $(thumbappbin_SCRIPTS)
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to