#13 General error handling mechanism in STX


STX should provide a general and consistent way to
handle errors with STX means.

That means instead of introducing special
attributes/instructions/whatever for each STX
instruction (for example the case an URI for
stx:process-document couldn't be retrieved), the
general error handling mechanism would cover these.

According to Petr's proposal the STX processor should
generate a special SAX event using a special namespace
that can be processed in a template just like any other
SAX event.

This event could be regarded as an exception. Catching
an exception then is:

<stx:template match="stxex:file-not-found">

<stx:template match="stxex:*"> <!-- catch all -->

Each exception is an empty element. Properties of the
exception will be represented as attributes.

The stylesheet must provide a way to change the
namespace used for exceptions (in case the input itself
uses elements in this namespace).


  • Petr Cimprich

    Petr Cimprich - 2003-12-22
    • priority: 4 --> 6
    • assigned_to: nobody --> zubow

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks