Next: The SGML-based HTML
Up: 4.5.2 Summarizing SGML data
Previous: Errors and warnings
To create an SGML summarizer for a new SGML-tagged data type with
and an associated DTD, you need to do the following:
-
Write a shell script named FOO.sum which simply contains
#!/bin/sh
exec SGML.sum FOO $*
-
Modify the essence configuration files (as described in
Section 4.5.4) so that your documents get typed as
FOO.
-
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.
-
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