Re: xml2rfc line break

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 18.08.2021 um 18:03 schrieb Carsten Bormann:
On 2021-08-18, at 17:01, Julian Reschke <julian.reschke@xxxxxx> wrote:

So while this may be confusing until one reads the grammar, this is at least somewhat consistent.

Absolutely. My suggestion was to raise a ticket for the non-helpful
diagnostics.

foo-broken.xml(623): Error: Element li has extra content: t, at /rfc/middle/section[2]/ul/li[1]/t
/.../foo-broken.xml(14): Error: Invalid document before running preptool.
Unable to complete processing foo-broken.xml

The line number turns out to be useful to me, as the XML editor is showing a validation error on the <t that follows text.

Creating useful error messages out of validation errors is generally impossible, as the grammar/schema has been abstracted of the information that could be used for a “why”/“what’s going on” part of the error message.

...but of course that doesn't mean that the tool can't create better
diagnostics. For instance, it could check certain things *before*
validating.

Best regards, Julian





[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Mhonarc]     [Fedora Users]

  Powered by Linux