NSGMLS parses and validates the SGML document and prints on the file a simple text representation of its Element Structure Information Set.
NSGMLS has been developed by James Clark(http://www.jclark.com/).
NSGMLS for Emacs can run with GNU Emacs 20.6 under MacOS ver.7.5.5 and later.
NSGMLS for Emacs was built by KISI on SP 1.3.3 and GNU Emacs 20.6 source code, using Metrowerks CodeWarrior IDE ver.3.0.
The version number of the binary is 1.3.3 beta 3.
The application type of binary is PowerPC.
Please send me the bug report.
nsgmls is always called from GNU Emacs 20.6 that ported to MacOS by Andrew Choi.
You can get GNU Emacs and GNU fonts from `http://prdownloads.sourceforge.net/mac-emacs/emacs-20.6-mac-bin-d5.smi.bin' and `http://prdownloads.sourceforge.net/mac-emacs/GNU-Fonts.sea.bin'.
Place this program into the folder where Emacs CW exists.
Change the following code in `/emacs-20.6/lisp/textmodes/sgml-mode.el' or change the program name `nsgmls' to `sgmls'.
;; sgmls is a free SGML parser available from ;; ftp.uu.net:pub/text-processing/sgml ;; Its error messages can be parsed by next-error. ;; The -s option suppresses output. (defcustom sgml-validate-command "nsgmls -s" "*The command to validate an SGML document. The file name of current buffer file name will be appended to this, separated by a space." :type 'string :group 'sgml)
You may specify the following switches.
Contact `http://www.jclark.com/sp/'.
[ -BCdeglprsuv ] [ -alinktype ] [ -bbctf | -bencoding ] [ -ccatalog_file ] [ -Ddirectory ] [ -Emax_errors ] [ -iname ] [ -ooutput_option ] [ -trast_file ] [ -wwarning_type ] [ -Ooutput_file ] [ sysid... ]For example,
nsgmls -Osample.esi sample.htm
-Ooutfile
Redirect stdout to outfile.
NSGMLS for Emacs uses the stdio and stderr (NSGMLS for MacOS uses SIOUX). Therefore `-ferror_file' does not specify.
In NSGMLS for Emacs, environment variables are expressed by a text file that is named `%SP%'.
Place it in the same folder where NSGMLS exists.
%SP% can express multiple lines.
Each line expresses single assignment such as `variablename = value'.
When the initial character is `#' or the line is null, the line means nothing.
For example, for Japanese,
# for Shift-JIS Encoding SP_CHARSET_FIXED=YES SP_SYSTEM_CHARSET=JIS SP_ENCODING=sjis
NSGMLS for Emacs is FREE.
KISI,KAZUTAKA (mailto:kisi@nifty.com), Fellow in JAGAT (http://www.jagat.or.jp/)
date : 11/17/2001