Some more on the problems of compiling dtds.
When I try
xemacs -batch -q -l psgml-parse.elc -l psgml-dtd.elc -eval "(progn
(sgml-set-global) (setq sgml-no-elements 0) (sgml-compile-dtd
\"$(pwd)/html-3.dtd\" \"$(pwd)/cdtd/html-3\" []))"
the result is:
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/CATALOG ...
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/CATALOG ... done
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/ECAT ...
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/ECAT ... done
Undefined parameter entity font|B|%phrase|%misc
Name expected; at: ) - - (%text
Name expected; at: ) - - (%text
xemacs exiting.
Changing the lines in the dtd from
<!ELEMENT (%font|B|%phrase|%misc) - - (%text)+>
<!ATTLIST (%font|B|%phrase|%misc) %attrs;>
to
<!ELEMENT (%font | B | %phrase | %misc) - - (%text)+>
<!ATTLIST (%font | B | %phrase | %misc) %attrs;>
eliminates the first problem, but leaves:
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/CATALOG ...
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/CATALOG ... done
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/ECAT ...
Loading /usr/local/lib/xemacs/xemacs-packages/etc/psgml/ECAT ... done
Parsing doctype (1 elements)...
Exptected content model group or one of ANY, CDATA, RCDATA or EMPTY
Exptected content model group or one of ANY, CDATA, RCDATA or EMPTY
xemacs exiting.
Peter
--
__ /__ Peter B. West pbwest(a)netscape.net
/
http://www.powerup.com.au/~pbwest
/ "Lord, to whom shall we go?"