Patch from Peter G. Note, this is temporary - eventually we will want to use the system nsgmls/onsgmls to handle this and remove our ancient copy of nsgmls.