docbook-apps

  • 1.  Validating against Schematron

    Posted 07-28-2020 21:56
    This is a question for the group.

    What do you currently use for validating DocBook agains both RelaxNG and Schematron?

    I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.

    Any pointers would be greatly appreciated.

    Thanks,
    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net






  • 2.  Re: [docbook-apps] Validating against Schematron

    Posted 07-29-2020 02:16
    I use Oxygen XML.

    Bob Stayton
    bobs@sagehill.net

    On 7/28/2020 2:55 PM, Richard Hamilton wrote:
    > This is a question for the group.
    >
    > What do you currently use for validating DocBook agains both RelaxNG and Schematron?
    >
    > I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.
    >
    > Any pointers would be greatly appreciated.
    >
    > Thanks,
    > Dick
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >



  • 3.  Re: [docbook-apps] Validating against Schematron

    Posted 07-29-2020 14:33
    I've use Oxygen (current 22.1) for many years. No problems.

    On 7/28/20 9:16 PM, Bob Stayton wrote:
    > I use Oxygen XML.
    >
    > Bob Stayton
    > bobs@sagehill.net
    >
    > On 7/28/2020 2:55 PM, Richard Hamilton wrote:
    >> This is a question for the group.
    >>
    >> What do you currently use for validating DocBook agains both RelaxNG and Schematron?
    >>
    >> I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.
    >>
    >> Any pointers would be greatly appreciated.
    >>
    >> Thanks,
    >> Dick
    >> -------
    >> XML Press
    >> XML for Technical Communicators
    >> http://track.smtpsendemail.com/13771/c?p=L_ZQiXjwEil4uIfPAqfm1T7I0WkQbehnr38Od8AJ9ukapJmzmF18k3K9yahGUXlMjIBdYtD1PzCtCRg9F3VaCBUr7arLgQoRGhwb9vdv0Xv2VW_d10_pet7sCPvHVors
    >> hamilton@xmlpress.net
    >>
    >>
    >>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail:docbook-apps-unsubscribe@lists.oasis-open.org
    >> For additional commands, e-mail:docbook-apps-help@lists.oasis-open.org
    >>
    >>


  • 4.  Re: [docbook-apps] Validating against Schematron

    Posted 07-29-2020 04:22
    We use Oxygen XML Editor since Version 11 (recent Version is 22). It
    supports DocBook very well. The concept of Master files is great for
    large, modular Documents, because you can edit and validate a single
    file in context. (The same concept helps in analyzing and customization
    of DocBooks modular stylesheets.) Validating against Schematron supports
    Schematron Quick Fix <http://www.schematron-quickfix.com/index.html>.

    There is an optional DeltaXML <https://www.deltaxml.com/> Plugin for
    comparison of large DocBook Documents.

    Frank Steimke
    KoSIT
    http://www.xoev.de

    Am 28.07.2020 um 23:55 schrieb Richard Hamilton:
    > This is a question for the group.
    >
    > What do you currently use for validating DocBook agains both RelaxNG and Schematron?
    >
    > I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.
    >
    > Any pointers would be greatly appreciated.
    >
    > Thanks,
    > Dick
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >



  • 5.  Re: [docbook-apps] Validating against Schematron

    Posted 07-29-2020 06:49
    On Tue, 28 Jul 2020 at 22:55, Richard Hamilton <hamilton@xmlpress.net> wrote:
    >
    > This is a question for the group.
    >
    > What do you currently use for validating DocBook agains both RelaxNG and Schematron?
    >
    > I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.

    Jing? Fast and accurate. Does the job well IMHO.


    regards


    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    Docbook FAQ.



  • 6.  Re: [docbook-apps] Validating against Schematron

    Posted 07-30-2020 00:22
    Hi Dave,

    Thanks for the suggestion. I hadn’t used Jing in so long that I didn’t remember that it has (or claims) support for Schematron.

    Did you modify Jing or the Schematron rules? I tried running it using the docbookxi.rng schema and also with the docbook.sch schematron rules (DocBook 5.0, .1, and 5.2) and didn’t have much success.

    Running it using docbook.sch, I get a namespace error on db:, which is strange, since db is properly declared in the Schematron file. I even modified a test file so that it also used the prefix db: defined the same way, but no luck.

    Running it on docbookxi.rng (with embedded schematron rules), it doesn’t flag any Schematron errors (I removed version from the root element and nested <note> inside a <note>, neither of which is not allowed by the rules). I did confirm that it flags errors against just the schema.

    Any ideas would be welcome.

    Thanks,
    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    > On Jul 28, 2020, at 23:49, Dave Pawson <dave.pawson@gmail.com> wrote:
    >
    > On Tue, 28 Jul 2020 at 22:55, Richard Hamilton <hamilton@xmlpress.net> wrote:
    >>
    >> This is a question for the group.
    >>
    >> What do you currently use for validating DocBook agains both RelaxNG and Schematron?
    >>
    >> I’ve been looking around and downloading and trying some 10-to-15 year old solutions, but I figure there has to be something newer (or an update to one of the older ones) that does the job.
    >
    > Jing? Fast and accurate. Does the job well IMHO.
    >
    >
    > regards
    >
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > Docbook FAQ.




  • 7.  Re: [docbook-apps] Validating against Schematron

    Posted 07-30-2020 06:59
    Richard Hamilton <hamilton@xmlpress.net> writes:
    > Running it using docbook.sch, I get a namespace error on db:, which is
    > strange, since db is properly declared in the Schematron file. I even
    > modified a test file so that it also used the prefix db: defined the
    > same way, but no luck.

    If I grab the latest 5.2 repo and build it, jing (20181222) validates
    src/test/docbook/pass/article.001.xml with build/docbook.sch without any
    errors.

    And if I take out the version attribute, I get:

    $ jing build/docbook.sch src/test/docbook/fail/article.001.xml
    /Users/ndw/Projects/docbook/docbook/src/test/docbook/fail/article.001.xml:1: error: assertion failed:
    If this element is the root element, it must have a version attribute.

    Be seeing you,
    norm

    --
    Norman Tovey-Walsh <ndw@nwalsh.com>
    https://nwalsh.com/

    > The greatest of all secrets is knowing how to reduce the force of
    > envy.--Cardinal De Retz



  • 8.  Re: [docbook-apps] Validating against Schematron

    Posted 07-30-2020 08:05
    Well that explains it. I was under the impression that jing and trang were stuck in amber back in 2009. I just checked and the version I had was from 2009.

    I just tried the 2018 version, and it works fine with .sch files.

    Thanks for setting me straight.

    Dick
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    > On Jul 29, 2020, at 23:59, Norman Tovey-Walsh <ndw@nwalsh.com> wrote:
    >
    > Richard Hamilton <hamilton@xmlpress.net> writes:
    >> Running it using docbook.sch, I get a namespace error on db:, which is
    >> strange, since db is properly declared in the Schematron file. I even
    >> modified a test file so that it also used the prefix db: defined the
    >> same way, but no luck.
    >
    > If I grab the latest 5.2 repo and build it, jing (20181222) validates
    > src/test/docbook/pass/article.001.xml with build/docbook.sch without any
    > errors.
    >
    > And if I take out the version attribute, I get:
    >
    > $ jing build/docbook.sch src/test/docbook/fail/article.001.xml
    > /Users/ndw/Projects/docbook/docbook/src/test/docbook/fail/article.001.xml:1: error: assertion failed:
    > If this element is the root element, it must have a version attribute.
    >
    > Be seeing you,
    > norm
    >
    > --
    > Norman Tovey-Walsh <ndw@nwalsh.com>
    > https://nwalsh.com/
    >
    >> The greatest of all secrets is knowing how to reduce the force of
    >> envy.--Cardinal De Retz