On Tue, 04 Apr 2000 at 23:58:56 +1000, "Peter B. West"
<pbwest(a)netscape.net> wrote:
When I write a text xml file and a dtd for it, as in the JAXP
tutorial,
any attempt to indent the buffer text leads to the following problem.
[snip]
The difficulty is that my DOCTYPE is a SYSTEM followed by the local
filename of the dtd. In the call to `sgml-setup-doctype' the pubid is
`nil'. `sgml-canonize-pubid' however, makes no provision for a `nil'
pubid.
This one is my fault. Does the following patch solve the problem?
--- psgml-parse.el~ Fri Mar 31 11:34:30 2000
+++ psgml-parse.el Tue Apr 4 17:40:39 2000
@@ -3535,8 +3535,9 @@
(cond (external
;; James addition - set the sgml-declaration
(let ((decl
- (sgml-catalog-lookup sgml-catalog-files nil 'dtddecl
- (sgml-canonize-pubid (car external)))))
+ (and (car external)
+ (sgml-catalog-lookup sgml-catalog-files nil 'dtddecl
+ (sgml-canonize-pubid (car external))))))
(if decl (setq sgml-declaration decl)))
(sgml-push-to-entity (sgml-make-entity docname 'dtd external))
(sgml-check-dtd-subset)
If so, I'll send it to xemacs-patches. Thanks,
--
Jerry James
Email: james(a)eecs.ukans.edu
WWW:
http://www.eecs.ukans.edu/~james/