Re: Edit xml files with Emacs for Docbook
"Dave Pawson [email protected] [emacs-nxml-mode]" <[email protected]> Fri, 15 Apr 2016 05:13:39 +0100
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <CAEncD4eH3fj+17HTNAgcjWnusrrN+9h+JTzh4MK7k59F42tLJg@mail.gmail.com> |
Minor clarification of Peters response On 14 April 2016 at 22:44, Peter Flynn [email protected] [emacs-nxml-mode] <[email protected]> wrote: > > [WARNING: the following is a personal view: others may disagree] > > The original sgml-mode wasn't much use: it recognised pointy brackets > but that was about it. > > Parsing sgml mode (psgml-mode) was a huge improvement: it could read a > DTD (the format description of an SGML/XML vocabulary) so it understood > the document structure and could perform name completion, and it > provided proper editing keystrokes like insert-element, remove-element, > surround-with-element, delete-element, edit-attributes, go-to-start-tag, > go-to-end-tag, etc. If your files rely on DTDs, then this is the editing > mode to use. > > But XML can also work with W3C Schemas instead of DTDs. These are > heavily used, and nxml-mode is an editing mode for Emacs that understand > them. https://www.emacswiki.org/emacs/NxmlMode nxml-mode cannot work with W3C schemas, but relax-ng schemas. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk ------------------------------------ Posted by: Dave Pawson <[email protected]> ------------------------------------