3 # $Id: abs2dom,v 1.2 2007-12-17 12:28:50 sondberg Exp $
4 # ----------------------------------------------------------------------------
5 # Generate a dom-filter indexing stylesheet based upon an .abs file
11 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 xmlns:z="http://indexdata.com/zebra-2.0"
15 <xsl:output indent="yes"
20 <xsl:template match="/">
22 <xsl:apply-templates/>
33 next unless s/^xelm\s+//;
34 my ($index) = (/(\S+)$/);
37 my @indexes = split /,/, $index;
39 print " <xsl:template match=\"$xpath\">\n";
40 print " <z:index name=\"", join(" ", @indexes), "\">\n";
41 print " <xsl:value-of select=\".\"/>\n";
42 print " </z:index>\n";
43 print " </xsl:template>\n\n";
47 print "</xsl:stylesheet>\n";