next up previous contents index
Next: The SGML-based HTML Up: 4.5.2 Summarizing SGML data Previous: Errors and warnings

Creating a summarizer for a new SGML-tagged data type

 

To create an SGML summarizer for a new SGML-tagged data type with and an associated DTD, you need to do the following:

  1. Write a shell script named FOO.sum which simply contains
            #!/bin/sh
            exec SGML.sum FOO $*
    

  2. Modify the essence configuration files (as described in Section 4.5.4) so that your documents get typed as FOO.

  3. Create the directory $HARVEST_HOME/lib/gatherer/sgmls-lib/FOO/ and copy your DTD and Declaration there as FOO.dtd and FOO.decl. Edit $HARVEST_HOME/lib/gatherer/sgmls-lib/catalog and add FOO.dtd to it.

  4. Create the translation table FOO.sum.tbl and place it with the DTD in $HARVEST_HOME/lib/gatherer/sgmls-lib/FOO/.

At this point you can test everything from the command line as follows:

        % FOO.sum myfile.foo



Duane Wessels
Wed Jan 31 23:46:21 PST 1996