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
+
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to