Groups | Search | Server Info | Login | Register


Groups > comp.text.xml > #891

Re: Schematron questions

From "N. Raghavendra" <nyraghu27132@gmail.com>
Newsgroups comp.text.xml
Subject Re: Schematron questions
References <87vabuodmk.fsf@hri.res.in> <c30e5652-67cf-431a-af95-7da3533718d8@googlegroups.com>
Message-ID <871see5kta.fsf@gmail.com> (permalink)
Organization usenet-news.net
Date 2018-05-14 20:46 +0530

Show all headers | View raw


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 <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/

Back to comp.text.xml | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Schematron questions "N. Raghavendra" <raghu@hri.res.in> - 2018-05-11 12:58 +0530
  Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-11 13:44 +0530
  Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-12 13:43 +0530
  Re: Schematron questions George Bina <george@oxygenxml.com> - 2018-05-14 06:52 -0700
    Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-14 20:46 +0530
      Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-14 21:24 +0530
        Re: Schematron questions Peter Flynn <peter@silmaril.ie> - 2018-05-17 22:51 +0100
          Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-18 13:52 +0530
            Re: Schematron questions Manuel Collado <m-collado@users.sourceforge.net> - 2018-05-18 15:39 +0200
              Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-18 20:40 +0530
            Re: Schematron questions Peter Flynn <peter@silmaril.ie> - 2018-05-18 20:56 +0100
              Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-19 10:15 +0530
                Re: Schematron questions Peter Flynn <peter@silmaril.ie> - 2018-05-20 22:32 +0100
                Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-05-21 08:30 +0530
                Re: Schematron questions Peter Flynn <peter@silmaril.ie> - 2018-06-29 22:32 +0100
                Re: Schematron questions "N. Raghavendra" <nyraghu27132@gmail.com> - 2018-07-01 00:24 +0530

csiph-web