Some prior art re diagnostics detection and handling

MURATA Makoto eb2m-mrt at asahi-net.or.jp
Fri Nov 16 23:29:25 CET 2012


Here is what XML (fifth edition) says.

error
[Definition: A violation of the rules of this specification; results
are undefined.
Unless otherwise specified, failure to observe a prescription of this
specification
indicated by one of the keywords must, required, must not, shall and shall not
is an error. Conforming software may detect and report an error and
may recover from it.]

fatal error
[Definition: An error which a conforming XML processor must detect
and report to the application. After encountering a fatal error, the processor
may continue processing the data to search for further errors and may
report such errors to the application. In order to support correction
of errors, the processor may make unprocessed data from the document
(with intermingled character data and markup) available to the application.
Once a fatal error is detected, however, the processor must not continue
normal processing (i.e., it must not continue to pass character data and
information about the document's logical structure to the application in
the normal way).]

Regards,
Makoto

2012/11/17 Rex Jaeschke <rex at rexjaeschke.com>:
> As discussed on the telcon today:
>
>
>
>
>
> From 9899:2011 (C Language Standard)
>
>
>
> 5.1.1.3 Diagnostics
>
> 1 A conforming implementation shall produce at least one diagnostic message
> (identified in
>
> an implementation-defined manner) if a preprocessing translation unit or
> translation unit
>
> contains a violation of any syntax rule or constraint, even if the behavior
> is also explicitly
>
> specified as undefined or implementation-defined. Diagnostic messages need
> not be
>
> produced in other circumstances. Footnote 9)
>
>
>
> Footnote 9) The intent is that an implementation should identify the nature
> of, and where possible localize, each
>
> violation. Of course, an implementation is free to produce any number of
> diagnostics as long as a
>
> valid program is still correctly translated. It may also successfully
> translate an invalid program.
>
>
>
> Rex
>
>



-- 

Praying for the victims of the Japan Tohoku earthquake

Makoto


More information about the sc34wg4 mailing list