Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!85.12.16.70.MISMATCH!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx36.iad.POSTED!not-for-mail From: "N. Raghavendra" Newsgroups: comp.text.xml Subject: Re: Schematron questions References: <87vabuodmk.fsf@hri.res.in> <871see5kta.fsf@gmail.com> <87sh6u44hh.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Reply-To: "N. Raghavendra" Message-ID: <87vabltltf.fsf@gmail.com> Cancel-Lock: sha1:WBty/68Gz1sa8eU7YG0P8bvqV5A= MIME-Version: 1.0 Content-Type: text/plain Lines: 65 X-Complaints-To: abuse@usenet-news.net NNTP-Posting-Date: Fri, 18 May 2018 08:22:36 UTC Organization: usenet-news.net Date: Fri, 18 May 2018 13:52:36 +0530 X-Received-Bytes: 3465 X-Received-Body-CRC: 3907772240 Xref: csiph.com comp.text.xml:894 At 2018-05-17T22:51:30+01:00, Peter Flynn wrote: > I have been trying to make it clear for some time that nXML is *not* an > editor suitable for writing XML documents. Well, it is a part of Emacs, and I have read good things about it, as in http://archive.oreilly.com/pub/h/2044 http://www.xmlhack.com/read.php_item=2061 and https://www.tbray.org/ongoing/When/200x/2003/09/18/NXML Therefore, I thought it was reasonable to use it for editing XML. > What you want is psgml, which has the full set of document-editing > features (completion, insertion, encapsulation, deletion, change, > splitting, attribute editing, etc). Install it from your Emacs repos (I > think it's in marmelade). Yes, I have used PSGML quite a bit for editing DocBook SGML, and found it very nice. But, for a few years, it seemed unmaintained, though now it seems to be having some recent commits at the ELPA Git repository. > There is a separate xxml-mode.el which provides even more editing > features. I didn't know about this; thanks for telling me. > But psgml only works with DTDs (XML DTDs as well as SGML DTDs) as it has > no knowledge of RNG or W3C schemas. This is usually not a problem for > the document-world (books, journals, articles), where RNG/W3C are rarely > used yet. If one wants to publish a book with a commercial publisher, one may have to use a DTD. However, I am planning to release my work under a combination of the Gnu FDL and the GNU GPL, so I will have to take care of the publishing myself, whatever "publishing" may mean here (it will certainly include putting the product on a public Web site). Given that, I have considered two schemas, the DocBook schema, and the `mathbook' schema (http://mathbook.pugetsound.edu/). Both of them use RELAX NG as their primary schema language. However, neither of these schemas really suits my needs, so I am trying to write a simple schema that will do for me. > When I win the Lottery I will fund an elisp expert to modify psgml > a) to support RNG/W3C; > b) to add a few features like element-join; and > c) merge the features of xxml-mode and fix a few trivial buglets. > > Unless some valiant elisp hacker cares to step up to the plate... That'd be good! Thanks, Raghu. PS: Thanks also for the book `Understanding SGML and XML tools'. I have often found it a useful reference. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/