From: Anders S. Mortensen Date: Mon, 17 Dec 2007 11:48:14 +0000 (+0000) Subject: Added. X-Git-Tag: ZEBRA.2.0.20~16 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=daca89243af359a79f23b69690d2b39aa6db9b67;p=idzebra-moved-to-github.git Added. --- diff --git a/util/abs2dom b/util/abs2dom new file mode 100755 index 0000000..fb20cdc --- /dev/null +++ b/util/abs2dom @@ -0,0 +1,31 @@ +#!/usr/bin/perl -w + +# $Id: abs2dom,v 1.1 2007-12-17 11:48:14 sondberg Exp $ +# ---------------------------------------------------------------------------- +# Generate a dom-filter indexing stylesheet based upon an .abs file + +use strict; + +my $xslt_header = < + + +END_OF_XSLT + + +while (<>) { + chomp; + s/^\s+//; + s/\s+$//; + next unless s/^xelm\s+//; + my ($indexes) = (/(\S+)$/); + s/\s+\Q$indexes\E$//; + my $xpath = $_; + + print "XPATH='$xpath', INDEX='$indexes'\n"; +}