|
|||||
|
|||||
Related Syntax | Related Concepts | ||||
rule type |
prolog-in-error |
Syntax
prolog-in-error condition? action*
If the XML or SGML parser encounters an error in the proglog of a document (the prolog is anything occurring before the start tag of the root element, such as the SGML or XML declaration or the DTD), it stops parsing at the end of the prolog and does not process the document. If you need to perform any actions at the end of the prolog when it is in error, you can write a prolog-in-error
rule.
A prolog-in-error
rule is an alternative to a prolog-end
rule. A prolog-end
rule is fired at the end of the prolog if no errors occur in the prolog. A prolog-in-error
rule is fired if errors occurred in the prolog. Note that the prolog-in-error
rule is not fired at the time that the error is detected. Errors in the prolog cause a markup-error
rule to be fired. The prolog-in-error
rule is fired at the end of the prolog if errors occurred in the prolog.
You can have more than one prolog-in-error-rule
. Each rule will be performed in the order they occur in the program.
Related Syntax prolog-end do sgml-parse do xml-parse |
Related Concepts Errors, markup (XML or SGML) |