X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fabs2dom;fp=util%2Fabs2dom;h=3a3acba40efc1505b90c4c6573ea1eaa00c83db2;hb=707cc9ebfa7f462ec58a31cfbad4c1a09fecfa00;hp=fb20cdcf474318b7f6ca4141b5fd8b5d66159428;hpb=29031807a95fde753e12d606c7db2e31acc5f645;p=idzebra-moved-to-github.git diff --git a/util/abs2dom b/util/abs2dom index fb20cdc..3a3acba 100755 --- a/util/abs2dom +++ b/util/abs2dom @@ -1,13 +1,14 @@ #!/usr/bin/perl -w -# $Id: abs2dom,v 1.1 2007-12-17 11:48:14 sondberg Exp $ +# $Id: abs2dom,v 1.2 2007-12-17 12:28:50 sondberg Exp $ # ---------------------------------------------------------------------------- # Generate a dom-filter indexing stylesheet based upon an .abs file use strict; -my $xslt_header = < + @@ -15,6 +16,13 @@ my $xslt_header = < + + + + + + + END_OF_XSLT @@ -23,9 +31,17 @@ while (<>) { s/^\s+//; s/\s+$//; next unless s/^xelm\s+//; - my ($indexes) = (/(\S+)$/); - s/\s+\Q$indexes\E$//; + my ($index) = (/(\S+)$/); + s/\s+\Q$index\E$//; my $xpath = $_; + my @indexes = split /,/, $index; - print "XPATH='$xpath', INDEX='$indexes'\n"; + print " \n"; + print " \n"; + print " \n"; + print " \n"; + print " \n\n"; } + + +print "\n";