james(a)eecs.ukans.edu (Jerry James) writes:
I wrote to Andreas awhile back about looking at updating the psgml
package (for my own selfish purposes, of course).
Actually, I did exactly the same a few weeks ago, but real live made
that I still have some unresolved points. For example my version
creates lisp errors during parsing an (XML) DTD if psgml-dtd.el is
compiled.
So, some comments:
- The current XEmacs psgml package uses tempo to do string
insertion. However, psgml-1.2.1 does not do so. I didn't know if
the use of tempo was an XEmacs team change, or if the psgml
maintainer simply stopped using it. I went on the latter
assumption for now, since there is no mention of the matter in the
ChangeLog.
I compared with psgml 1.0 from the maintainer and it didn't use tempo
either. So I think it is an xemacs change which seems to be kind of
useful, so I made psgml-edit still using tempo. I think this is
because the HTML mode of psgml offered by XEmacs is basing on
html-minor-mode which had this feature. BTW, I have a hack
re-implementing the HTML menu from html-minor-mode to choose the
tags. I will send a patch, once psgml is updated.
- One change marked "Wing change" was removed by me. As
far as I can
tell, it is wrong, perhaps given subsequent development to psgml.
It dealt with the insertion of end tags.
I double this.
Many of the DTDs had updates (usually minor), so I imported
a new set from
w3.org. In addition, I did the following:
Luckily I didn't spend much time, yet, on updating the DTDs, so thanks
for doing the update.
Does anybody know if XML DTDs need to be put into the catalog? To
use
them, you have to give both a system and a public identifier, right? So
a catalog seems redundant, but I know basically nothing about XML, so I
don't know what The Right Thing To Do is here.
I am not sure, but I think XML DTDs should be added to the catalog,
because the system identifier is not always valid if you edit files
from other sides or the referenced webpage doesn't exist anymore.
BTW, does psgml.el actually use HTTP to get the DTD? I don't think
so. Note: For our company I hacked sgml-public-map, to look up the
DTD in one directory based on the given doctype. Probably not really
clean, but keeps me from updating the catalog.
Finally, now that I have added a bunch of new DTDs, I'm starting
to
think that XEmacs should only ship with a handful of the most widely
used ones.
I agree on that. Since XML is really coming (e.g. used with Java),
there will be many DTDs for XML applications. It is impossible to put
them all into XEmacs. I suggest to put just a basic set of HTML and
probably DOCBOOK DTDs into the package.
Gerd