W3C home > Mailing lists > Public > xproc-dev@w3.org > June 2019

Detailed errors from pxp:nvdl

From: David Cramer <david@thingbag.net>
Date: Tue, 25 Jun 2019 18:06:46 -0500
To: xproc-dev@w3.org
Message-ID: <a0626ebf-d892-7f1f-3bb3-5d6d644e6ae7@thingbag.net>
Using xmlcalabash 1.1.27-99
See: https://gist.github.com/dwcramer/997a35527ebc34ebf7d671b18ca19149

I'm using try/catch and pxp:nvdl to validate documents using the same
pattern I learned on this list several years ago [1]. The problem is
that I don't get detailed errors about what's wrong with the document
from the catch's error port. Instead I get:

    <c:errors xmlns:c="http://www.w3.org/ns/xproc-step">
        <c:error
            xmlns:err="http://www.w3.org/ns/xproc-error"
            code="err:XC0053"
            href="file:/Users/dcramer/test.xpl"
            line="5"
            column="45">XC0053</c:error>
    </c:errors>

I DO get the errors on stdout, but I want to generate an attractive
report for the user and put it someplace useful.

Is this user error, a limitation of pxp:nvdl, or a bug in Calabash/its
dependencies?

Regards,
David

[1] https://lists.w3.org/Archives/Public/xproc-dev/2011Dec/0037.html
Received on Tuesday, 25 June 2019 23:07:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 25 June 2019 23:07:18 UTC