Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!newsreader5.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!post01.iad!fx20.iad.POSTED!not-for-mail From: "N. Raghavendra" Newsgroups: comp.text.xml Subject: Re: Schematron questions References: <87vabuodmk.fsf@hri.res.in> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Reply-To: "N. Raghavendra" Message-ID: <871see5kta.fsf@gmail.com> Cancel-Lock: sha1:mUA1O12uvslY9L9OenSp4YDqbBc= MIME-Version: 1.0 Content-Type: text/plain Lines: 38 X-Complaints-To: abuse@usenet-news.net NNTP-Posting-Date: Mon, 14 May 2018 15:16:49 UTC Organization: usenet-news.net Date: Mon, 14 May 2018 20:46:49 +0530 X-Received-Bytes: 2261 X-Received-Body-CRC: 3897410036 Xref: csiph.com comp.text.xml:891 At 2018-05-14T06:52:04-07:00, George Bina wrote: > However, there are no tools that will provide you guided editing based > on the Schematron schema, like for example showing you what elements > are possible at some point in the document when you are editing. Thank you for your reply. I found RELAX NG Compact Syntax schema for Schematron at https://github.com/Schematron/schema The nXML mode of Emacs provides schema-sensitive editing using RELAX NG Compact Syntax. So, it should be possible to use the above in Emacs, and get completion for allowed element names, etc. > Look also at http://www.schematron.com for Schematron related > information. Yes, I did. Finally, I found some clear advice in Erik Ray's `Learning XML', 2nd ed. He quotes Jeni Tennison as saying, "The real win with Schematron is when you use it in tandem with another schema language, particularly W3C XML Schema. There is no way that you should use it for a standalone schema, but to test co-occurrence constraints once the initial validation is done with W3C XML Schema or RELAX NG, it's a godsend." So, that's what I've decided to do: write a simple schema in RELAX NG Compact Syntax, and embed Schematron rules in it to enforce extra constraints. Thanks again for your advice. Raghu. -- N. Raghavendra , http://www.retrotexts.net/ Harish-Chandra Research Institute, http://www.hri.res.in/